FRAMES NO FRAMES

Class IlcRCTextureProbabilisticI

Definition file: ilsched/texturei.h
Include file: <ilsched/ilsched.h>

IlcRCTextureProbabilisticI is the implementation class for the probabilistic individual texture curve. This individual curve represents the individual demand (and variance of that demand) of the associated resource constraint for its resource. The curve is based on the assumption that each time in the domain of the start time variable of the activity associated with the resource constraint is uniformly likely to be assigned. Based on that assumption, the curve consists of four (time, demand) data points (here expressed in terms of the IlcRCTextureI API):

Where:

Note that all these calculations are based on the data points of the invoking IlcRCTextureProbabilisticI object. These points are updated in the IlcRCTextureProbabilisticI::updateDataPoints method using the methods of IlcRCTextureI (for example, IlcRCTextureI::setStart, IlcRCTextureI::setCapacity). These values are assigned as discussed for IlcRCTextureI::updateDataPoints.

By subclassing this class and overriding the IlcRCTextureProbabilisticI::updateDataPoints method, users can redefine these data points and so change the individual curve.

For more information, see Texture Measurements.

See Also:

Constructor and Destructor Summary
protected IlcRCTextureProbabilisticI(IlcManager m, IlcResourceConstraint rc, IlcResourceTexture resTexture)
Method Summary
protected virtual voidcalculateIndividualCurve()
protected virtual IlcBoolupdateDataPoints()
Inherited Methods from IlcRCTextureI
calcAltWeight, calculateIndividualCurve, getAltWeight, getCapacity, getDuration, getEnd, getResourceConstraint, getStart, getTargetStart, insertEvent, setAltWeight, setCapacity, setDuration, setEnd, setStart, setTargetStart, updateDataPoints
Constructor and Destructor Detail

IlcRCTextureProbabilisticI

protected IlcRCTextureProbabilisticI(IlcManager m, IlcResourceConstraint rc, IlcResourceTexture resTexture)

This protected constructor creates an instance of IlcRCTextureProbabilisticI for resource constraint rc and resource texture, texture. The created class represents the individual contribution of rc to the aggregate curve of texture. As this constructor is protected, it should only be called from subclasses of IlcRCTextureProbabilisticI or from the IlcRCTextureProbabilisticFactoryI friend class.


Method Detail

calculateIndividualCurve

protected virtual void calculateIndividualCurve()

This virtual, protected function creates the actual individual curve for the invoking object.


updateDataPoints

protected virtual IlcBool updateDataPoints()

This virtual method is called automatically during the process of updating the invoking individual texture curve. It updates as discussed for the member function IlcRCTextureI::updateDataPoints.