FRAMES NO FRAMES

Class IlcRCTexture

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

An instance of IlcRCTexture represents an individual texture curve for one resource constraint instance.

Individual curves for each resource constraint that can possibly be on a resource are aggregated to form aggregate curves represented by the IlcResourceTexture class.

For more information, see Texture Measurements.

See Also:

Method Summary
public IlcFloatgetCriticalContribution() const
public IlcResourceConstraintgetResourceConstraint() const
public IlcFloatgetTargetStart() const
public IlcBoolhasAlternatives() const
public voidsetNeedToRecomputeCurve()
public voidsetTargetStart(IlcFloat t) const
Method Detail

getCriticalContribution

public IlcFloat getCriticalContribution() const

This member function returns the amount that this individual curve contributes to the aggregate curve at the critical time point.


getResourceConstraint

public IlcResourceConstraint getResourceConstraint() const

This member function returns the resource constraint associated with the individual curve.


getTargetStart

public IlcFloat getTargetStart() const

This member function returns the target start time as set by the IlcRCTexture::setTargetStart member function. If no target start time has been set, IlcFloatMin is returned.


hasAlternatives

public IlcBool hasAlternatives() const

This member function returns IlcTrue if the associated resource constraint does not necessarily have to be true. That is, it returns IlcTrue if the resource constraint is either part of an alternative resource constraint or the resource constraint is part of a meta-constraint. Otherwise, the function returns IlcFalse.


setNeedToRecomputeCurve

public void setNeedToRecomputeCurve()

This member function forces the individual curve to be recomputed the next time the aggregate curve is updated. This function does not have to be explicitly called if the need to recompute the curve arises from changes to variables associated with the resource constraint or activity or to the target start time. Rather, this function is provided for the case where the individual texture curve is based on external user-defined data. When such data is "manually" changed, the IlcRCTexture object must be informed of the need to recompute the curve. Note that using this function generally implies that you have redefined the IlcRCTextureI::updateDataPoints method in your user-defined subclass of IlcRCTextureI.


setTargetStart

public void setTargetStart(IlcFloat t) const

This member function allows the setting of the target start time for an instance of IlcRCTexture. The target start time of an IlcRCTexture is the preferred start time of the corresponding activity derived by some external source (such as user preferences or a cooperating solver). The target start time is relevant only if the implementation class (a subclass of IlcRCTextureI) of the invoking object calculates the individual curve using the target. Of the predefined subclasses, only IlcRCTextureTargetI uses the target start time. User-defined subclasses of IlcRCTexture may form their individual curve using the target start time