Overview | Group | Tree | Graph | Index | Concepts |
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):
getStartMin(), h/STD
)getStartMin()+getDuration(), h*min(STD,getDuration())/STD
)
getEndMax()-getDuration(), h*min(STD,getDuration())/STD
)getEndMax(), 0
)Where:
h = getAltWeight() * getCapacity()
STD = getEndMax() - getStartMin() - getDuration() + 1
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:
IlcRCTextureIterator, IlcResourceTexture, IlcRCTextureProbabilisticFactoryI, IlcRCTextureESTI, IlcRCTextureI, IlcRCTextureTargetI
Constructor and Destructor Summary | |
---|---|
protected | IlcRCTextureProbabilisticI(IlcManager m, IlcResourceConstraint rc, IlcResourceTexture resTexture) |
Method Summary | |
---|---|
protected virtual void | calculateIndividualCurve() |
protected virtual IlcBool | updateDataPoints() |
Constructor and Destructor Detail |
---|
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 |
---|
This virtual, protected function creates the actual individual curve for the invoking object.
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
.