FRAMES NO FRAMES

Class IlcResourceConstraint

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

Instances of the class IlcResourceConstraint are resource constraints. This class inherits from the Solver class IlcConstraint, which is documented in the Solver Reference Manual.

Instances of this class are created by these member functions:

For more information, see Precedence Graph Constraints, Sequence Constraint, Metaconstraints, and IlcConstraint in the IBM ILOG Solver Reference Manual.

See Also:

Constructor Summary
public IlcResourceConstraint()
public IlcResourceConstraint(IlcResourceConstraintI * impl)
Method Summary
public IlcActivitygetActivity() const
public IlcCalendargetCalendar() const
public IlcIntgetCapacity() const
public IlcIntVargetCapacityVariable() const
public IlcResourceConstraintI *getImpl() const
public IlcResourceConstraintgetNextRC() const
public IlcIntVargetNextVar() const
public IlcResourceConstraintgetPrevRC() const
public IlcIntVargetPrevVar() const
public IlcResourcegetResource() const
public IlcIntgetSequenceIndex() const
public IlcShapegetShape() const
public IlcFloatgetSlope() const
public IlcSlopeConstraintModegetSlopeConstraintMode() const
public IlcAnygetState() const
public IlcAnySetgetStateSet() const
public IlcAnySetVargetStateSetVariable() const
public IlcAnyVargetStateVariable() const
public IlcTimeExtentgetTimeExtent() const
public IlcBoolhasAsNext(IlcResourceConstraint) const
public IlcBoolhasAsPossibleNext(IlcResourceConstraint) const
public IlcBoolhasCalendar() const
public IlcBoolhasNextRC() const
public IlcBoolhasPrevRC() const
public IlcBoolhasShape() const
public IlcBoolhasSlope() const
public IlcBoolisCapacityConstraint() const
public IlcBoolisDirectlySucceededBy(IlcResourceConstraint) const
public IlcBoolisInwardConstraint() const
public IlcBoolisNegativeConstraint() const
public IlcBoolisNotVisited() const
public IlcBoolisPossibleFirst() const
public IlcBoolisPossibleLast() const
public IlcBoolisPossibleSetup() const
public IlcBoolisPossibleTeardown() const
public IlcBoolisProvidingConstraint() const
public IlcBoolisRanked() const
public IlcBoolisRankedFirst() const
public IlcBoolisRankedLast() const
public IlcBoolisSetup() const
public IlcBoolisStateConstraint() const
public IlcBoolisStateSetConstraint() const
public IlcBoolisSucceededBy(IlcResourceConstraint) const
public IlcBoolisTeardown() const
public IlcBoolisVariableResourceConstraint() const
public IlcBoolisVirtualNode() const
public IlcBoolisVisited() const
public IlcVariableSlopeShapemakeVariableSlopeShape(IlcFloatVar slope) const
public voidoperator=(const IlcResourceConstraint & h)
public IlcBoolpossiblyContributes() const
public voidrankFirst()
public voidrankLast()
public voidrankNotFirst()
public voidrankNotLast()
public voidremoveShape() const
public voidsetCalendar(IlcCalendar cal)
public voidsetNext(IlcResourceConstraint ct)
public voidsetNotNext(IlcResourceConstraint ct)
public voidsetNotSetup()
public voidsetNotTeardown()
public voidsetNotVisited()
public voidsetSetup()
public voidsetSlope(IlcFloat slope, IlcSlopeConstraintMode mode=IlcRoundedCapacity)
public voidsetSuccessor(IlcResourceConstraint ct)
public voidsetTeardown()
public voidsetVisited()
public IlcBoolsurelyContributes() const
public voidunsetNext()
public voidunsetSetup()
public voidunsetSuccessor(IlcResourceConstraint ct)
public voidunsetTeardown()
Constructor Detail

IlcResourceConstraint

public IlcResourceConstraint()
This constructor creates an instance which is empty, that is, one whose handle pointer is null. You must assign it a value before you access it. Any attempt to access it before assignment leads to undefined behaviour.

IlcResourceConstraint

public IlcResourceConstraint(IlcResourceConstraintI * impl)
This constructor creates an instance of the handle class from the pointer to an instance of the implementation class.

Method Detail

getActivity

public IlcActivity getActivity() const

This member function returns the activity of the invoking resource constraint.


getCalendar

public IlcCalendar getCalendar() const

This member function returns the calendar attached to the invoking resource constraint, if such an object exists.


getCapacity

public IlcInt getCapacity() const

This member function returns the required or provided quantity of the invoking resource constraint.


getCapacityVariable

public IlcIntVar getCapacityVariable() const

This member function returns the variable representing the required or provided quantity of the invoking resource constraint.


getImpl

public IlcResourceConstraintI * getImpl() const
This member function returns a pointer to the implementation object of the invoking handle.

getNextRC

public IlcResourceConstraint getNextRC() const

This member function returns the resource constraint of the next activity of the invoking resource constraint. The resource constraint must be of time extent IlcFromStartToEnd. This member function should be called only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


getNextVar

public IlcIntVar getNextVar() const

This member function returns the next variable of the invoking resource constraint. The resource constraint must be of time extent IlcFromStartToEnd. The resource must be an instance of IlcUnaryResource, closed, and with its sequence constraint created. Let Nb be the number of resource constraints of time extent IlcFromStartToEnd. When the sequence constraint is posted, the next variable is initialized to the following set.

If the value of the next variable is Nb + 1, the resource constraint is the last on the resource. If its value is -1, the resource constraint is not visited, that is, either the processing time or the required capacity is zero.


getPrevRC

public IlcResourceConstraint getPrevRC() const

This member function returns the resource constraint of the previous activity of the invoking resource constraint. The resource constraint must be of time extent IlcFromStartToEnd. This member function should be called only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


getPrevVar

public IlcIntVar getPrevVar() const

This member function returns the previous variable of the invoking resource constraint. The resource constraint must be of time extent IlcFromStartToEnd. The resource must be an instance of IlcUnaryResource, closed, and with its sequence constraint created. Let Nb be the number of resource constraints of time extent IlcFromStartToEnd. When the sequence constraint is posted, the previous variable is initialized to the following set.

If the value of the previous variable is 0 (zero), the resource constraint is the first on the resource. If its value is -1, the resource constraint is not visited, that is, either the processing time or the required capacity is zero.


getResource

public IlcResource getResource() const

This member function returns the resource of the invoking resource constraint.


getSequenceIndex

public IlcInt getSequenceIndex() const

This member function returns the unique index of the invoking resource constraint used by the sequence constraint attached to its resource.

The resource constraint must be of time extent IlcFromStartToEnd. The resource must be an instance of IlcUnaryResource, closed, and with its sequence constraint created.

To obtain the resource constraint from an index, use the accessor IlcUnaryResource::getSequenceRC.


getShape

public IlcShape getShape() const

This function returns the instance of IlcShape associated with the resource constraint. An error will be raised if no such shape has been created.


getSlope

public IlcFloat getSlope() const

This member function returns the slope value of the slope constraint created by the member function setSlope. An instance of IloSolver::SolverErrorException is thrown if the invoking resource constraint has no slope constraint or if its resource is not a continuous reservoir.


getSlopeConstraintMode

public IlcSlopeConstraintMode getSlopeConstraintMode() const

This member function returns the rounding mode of the slope constraint created by the member function IlcResourceConstraint::setSlope. An instance of IloSolver::SolverErrorException is thrown if the invoking resource constraint has no slope constraint or if its resource is not a continuous reservoir.


getState

public IlcAny getState() const

This member function returns the required state of the invoking resource constraint.


getStateSet

public IlcAnySet getStateSet() const

This member function returns the required set of states of the invoking resource constraint.


getStateSetVariable

public IlcAnySetVar getStateSetVariable() const

This member function returns the variable representing the required set of states of the invoking resource constraint.


getStateVariable

public IlcAnyVar getStateVariable() const

This member function returns the variable representing the required state of the invoking resource constraint.


getTimeExtent

public IlcTimeExtent getTimeExtent() const

This member function returns the time extent of the invoking resource constraint.


hasAsNext

public IlcBool hasAsNext(IlcResourceConstraint) const

Before search, this function returns IlcTrue if and only if a next relation has been added with the member function IlcResourceConstraint::setNext(rct). In search, this member function returns IlcTrue if rct is next to the invoking resource constraint. Otherwise, it returns IlcFalse. This member function should be called only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


hasAsPossibleNext

public IlcBool hasAsPossibleNext(IlcResourceConstraint) const

This member function returns IlcTrue if it is possible that rct is next to the invoking resource constraint. Otherwise, it returns IlcFalse.

This member function should be used only in search and only if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


hasCalendar

public IlcBool hasCalendar() const

This member function returns IloTrue if a calendar has been attached to the invoking resource constraint. Otherwise, it returns IloFalse.


hasNextRC

public IlcBool hasNextRC() const

This member function returns IlcTrue if the immediately following activity of the activity of the invoking resource constraint is known. Otherwise it returns IlcFalse.

The resource constraint must be of time extent IlcFromStartToEnd. This member function should be called only if some rank information is available on the resource (see member function IlcResource::hasRankInfo)

There is no possible next resource constraint if the invoking resource constraint does not contribute or is the teardown resource constraint.


hasPrevRC

public IlcBool hasPrevRC() const

This member function returns IlcTrue if the immediately preceding activity of the activity of the invoking resource constraint is known. Otherwise it returns IlcFalse.

The resource constraint must be of time extent IlcFromStartToEnd. This member function should be called only if some rank information is available on the resource (see member function IlcResource::hasRankInfo)

There is no possible previous resource constraint if the invoking resource constraint does not contribute or is the setup resource constraint.


hasShape

public IlcBool hasShape() const

This function returns IlcTrue if a shape has been associated with the resource constraint


hasSlope

public IlcBool hasSlope() const

This member function returns IlcTrue if the resource of the invoking resource constraint is a continuous reservoir and if a slope constraint has been defined by the member function IlcResourceConstraint::setSlope. Otherwise, it returns IlcFalse.


isCapacityConstraint

public IlcBool isCapacityConstraint() const

This member function returns IlcTrue if and only if the invoking resource constraint indicates that a quantity (and thus not a state) is required or provided.


isDirectlySucceededBy

public IlcBool isDirectlySucceededBy(IlcResourceConstraint) const

This member function returns IlcTrue if the invoking resource constraint is directly succeeded by the resource constraint rct. Otherwise, it returns IlcFalse.

This member function should be called only if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


isInwardConstraint

public IlcBool isInwardConstraint() const

This member function returns IlcTrue if and only if the occupancy of the resource by the invoking constraint is to be rounded inward towards the nearest valid time that corresponds to a time step. This rounding is important only when one of the timetables of the resource has a time step greater than 1 (one).


isNegativeConstraint

public IlcBool isNegativeConstraint() const

This member function returns IlcTrue if and only if the invoking constraint was constructed by the member function IlcActivity::requiresNot, or was extracted from an IloResourceConstraint that was constructed by the member function IloActivity::requiresNot


isNotVisited

public IlcBool isNotVisited() const

This member function returns IlcTrue if the activity of the invoking resource constraint is not visited by the path defined by the sequence constraint attached to its resource. Otherwise it returns IlcFalse. Not visited means that the processing time or the required capacity is zero.

The resource constraint must be of time extent IlcFromStartToEnd. The resource must be an instance of IlcUnaryResource, closed, and with its sequence constraint created.


isPossibleFirst

public IlcBool isPossibleFirst() const

This member function returns IlcTrue if the activity that corresponds to the invoking resource constraint can be ranked first among those that have not yet been ranked. Otherwise, it returns IlcFalse. In particular, it returns IlcFalse if the activity has already been ranked.

This member function should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource).

This function should be used only if the ranking information is available on the resource (see IlcResource::hasRankInfo).


isPossibleLast

public IlcBool isPossibleLast() const

This member function returns IlcTrue if the activity that corresponds to the invoking resource constraint can be ranked last among those that have not yet been ranked. Otherwise, it returns IlcFalse. In particular, it returns IlcFalse if the activity has already been ranked.

This member function should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource).

This function should be used only if the ranking information is available on the resource (see IlcResource::hasRankInfo).


isPossibleSetup

public IlcBool isPossibleSetup() const

This member function returns IlcTrue if it is possible that the invoking resource constraint is a setup resource constraint. Otherwise, it returns IlcFalse.

This member function should be used only in search and only if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


isPossibleTeardown

public IlcBool isPossibleTeardown() const

This member function returns IlcTrue if it is possible that the invoking resource constraint is a teardown resource constraint. Otherwise, it returns IlcFalse.

This member function should be used only in search and only if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


isProvidingConstraint

public IlcBool isProvidingConstraint() const

This member function returns IlcTrue if and only if the invoking constraint was constructed by the member functions IlcActivity::provides, or IlcActivity::produces, or was extracted from an IloResourceConstraint that was constructed by the member function IloActivity::requiresNot.


isRanked

public IlcBool isRanked() const

This member function returns IlcTrue if and only if the invoking resource constraint has been ranked first or last on the resource; otherwise it returns IlcFalse.

This member function is available in search only. It should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource). This member function is available in search only.

This function should be used only if the ranking information is available on the resource (see IlcResource::hasRankInfo).


isRankedFirst

public IlcBool isRankedFirst() const

This member function returns IlcTrue if and only if the invoking resource constraint has been ranked first on the resource; otherwise it returns IlcFalse.

This member function is available in search only. It should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource). This member function is available in search only.

This function should be used only if the ranking information is available on the resource (see IlcResource::hasRankInfo).


isRankedLast

public IlcBool isRankedLast() const

This member function returns IlcTrue if and only if the invoking resource constraint has been ranked last on the resource; otherwise it returns IlcFalse.

This member function is available in search only. It should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource). This member function is available in search only.

This function should be used only if the ranking information is available on the resource (see IlcResource::hasRankInfo).


isSetup

public IlcBool isSetup() const

Before search, this function returns IlcTrue if and only if the invoking resource constraint has been constrained to be a setup resource constraint with the member function IlcResourceConstraint::setSetup.

In search, this member function returns IlcTrue if the invoking resource constraint is a setup resource constraint. Otherwise, it returns IlcFalse.

This member function should be called only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


isStateConstraint

public IlcBool isStateConstraint() const

This member function returns IlcTrue if and only if the invoking resource constraint indicates that a single state (and thus not a quantity or one of a set of states) is required.


isStateSetConstraint

public IlcBool isStateSetConstraint() const

This member function returns IlcTrue if and only if the invoking resource constraint indicates that one of a set of states (and thus not a quantity or a single state) is required.


isSucceededBy

public IlcBool isSucceededBy(IlcResourceConstraint) const

Before search, this function returns IlcTrue if and only if a successor relation has been added with the member function IlcResourceConstraint::setSuccessor(rct).

In search, this member function returns IlcTrue if the invoking resource constraint is succeeded by the resource constraint rct. Otherwise, it returns IlcFalse.

This member function should be called only if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


isTeardown

public IlcBool isTeardown() const

Before search, this function returns IlcTrue if and only if the invoking resource constraint has been constrained to be a teardown resource constraint with the member function IlcResourceConstraint::setTeardown.

In search, this member function returns IlcTrue if the invoking resource constraint is a teardown resource constraint. Otherwise, it returns IlcFalse.

This member function should be called only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


isVariableResourceConstraint

public IlcBool isVariableResourceConstraint() const

This member function returns IlcTrue if and only if the invoking resource constraint has a variable representing the required quantity or state or provided quantity.


isVirtualNode

public IlcBool isVirtualNode() const

This member function returns true if and only if the resource constraint requires a unary resource and represents the sequence virtual node of this unary resource. The sequence virtual node of a unary resource is an automatically created resource constraint that do not affect the availability of the resource and that is used in the sequence goals and selectors to represent the virtual initial (in case of a chronological sequence goal like IlcSequence) or final (in case of an anti-chronological sequence goal like IlcSequenceBackward) resource constraint in the sequence of resource constraints of the unary resource .


isVisited

public IlcBool isVisited() const

This member function returns IlcTrue if the activity of the invoking resource constraint is visited by the path defined by the sequence constraint attached to its resource. Otherwise it returns IlcFalse. Visited means that the processing time is strictly positive and the required capacity is one.

The resource constraint must be of time extent IlcFromStartToEnd. The resource must be an instance of IlcUnaryResource, closed, and with its sequence constraint created.


makeVariableSlopeShape

public IlcVariableSlopeShape makeVariableSlopeShape(IlcFloatVar slope) const

This function associates an instance of IlcVariableSlopeShape with the resource constraint. Shapes are only available on continuous reservoirs. An exception will be thrown if the minimal value of the slope variable is strictly negative.

See Also:


operator=

public void operator=(const IlcResourceConstraint & h)
This operator assigns an address to the handle pointer of the invoking object. That address is the location of the implementation object of the provided argument. After execution of this operator, the invoking object and the provided argument point to the same implementation object.

possiblyContributes

public IlcBool possiblyContributes() const

This member function returns IlcTrue if the invoking resource constraint possibly affects the availability of the resource. Otherwise, it returns IlcFalse.


rankFirst

public void rankFirst()

This member function states that the activity that corresponds to the invoking resource constraint is the first activity to execute among those that have not yet been ranked. This member function should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource).

The ranking has no effect on the start and end times of activities that do not truly require the resource, that is, activities for which the duration or the amount of required capacity can be 0 (zero). In other words, if the activity that corresponds to the invoking resource constraint truly requires its resource, then it is constrained to execute before any other unranked activity that truly requires the resource.

Any of the following cases will raise an error:


rankLast

public void rankLast()

This member function states that the activity that corresponds to the invoking resource constraint is the last activity to execute among those that have not yet been ranked. This member function should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource).

The ranking has no effect on the start and end times of activities that do not truly require the resource, that is, activities for which the duration or the amount of required capacity can be 0 (zero). In other words, if the activity that corresponds to the invoking resource constraint truly requires its resource, then it is constrained to execute after any other unranked activity that truly requires the resource.

Any of the following cases will raise an error:


rankNotFirst

public void rankNotFirst()

This member function states that the activity that corresponds to the invoking resource constraint is not the first activity to execute among those that have not yet been ranked. This member function should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource).

Any of the following cases will raise an error:


rankNotLast

public void rankNotLast()

This member function states that the activity that corresponds to the invoking resource constraint is not the last activity to execute among those that have not yet been ranked. This member function should be used only if the resource that corresponds to the invoking resource constraint is either a unary resource (an instance of IlcUnaryResource) or a state resource (an instance of IlcStateResource).

Any of the following cases will raise an error:


removeShape

public void removeShape() const

This function remove the instance of IlcShape associated with the resource constraint. This member function must be used outside the search. An error will be raised if no such shape has been created.


setCalendar

public void setCalendar(IlcCalendar cal)

This member function attaches the calendar cal to the invoking resource constraint.

Outside the search, it is possible to attach a new calendar to a resource constraint that already has a calendar attached. In that case the new attachment replaces the previous one.

During search, it is possible to attach a calendar only to a resource constraint that does not have a previously attached calendar. In that case, the attachment is reversible. During search, any attempt to attach a new calendar to a resource constraint that already has an attached calendar raises an error.

When two different calendars are attached respectively to a resource constraint and to its corresponding resource, only the one on the resource constraint is taken into account. That is, if some breaks are attached to the resource Res using the calendar Cal1 and some shifts are attached to a resource constraint Rct of Res using the calendar Cal2, then only shifts are taken into account on Rct (Cal2). In other words, breaks of cal1 are ignored (Cal1).

Notice that calendars can be shared between resources and resource constraints, and that setCalendar does not imply that a local copy of the calendar is made; one should be aware of the fact that any change to a shared calendar holds for all resources and resource constraints sharing the calendar.


setNext

public void setNext(IlcResourceConstraint ct)

This member function states that ct is next to the invoking resource constraint. This means that there cannot exist any resource constraint ct0 such that ct0 definitely affects the availability of the resource and ct0 starts or finishes between the end of the invoking resource constraint and the start of ct.

This member function should be called only on unary resources and if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


setNotNext

public void setNotNext(IlcResourceConstraint ct)

This member function states that ct cannot be next to the invoking resource constraint. This means that there must exist a resource constraint ct0 such that ct0 definitely affects the availability of the resource and ct0 starts or finishes between the end of the invoking resource constraint and the start of ct.

This member function should be called only on unary resources and only if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


setNotSetup

public void setNotSetup()

This member function states that the invoking resource constraint cannot be a setup resource constraint which means that some resource constraint must necessarily be previous to it.

This member function should be used only if a precedence graph constraint or a sequence constraint has been created on the resource. It can be used before or during search.

This member function should be called only on unary resources and if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


setNotTeardown

public void setNotTeardown()

This member function states that the invoking resource constraint cannot be a teardown resource constraint which means that some other resource constraint rct must exist such that the invoking resource constraint is previous to rct.

This member function should be called only on unary resources and if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


setNotVisited

public void setNotVisited()

This member function sets the activity of the invoking resource constraint to "not visited" by the path defined by the sequence constraint attached to its resource. Not visited means that the processing time or the required capacity is zero.

The resource constraint must be of time extent IlcFromStartToEnd. The resource must be an instance of IlcUnaryResource, closed, and with its sequence constraint created.


setSetup

public void setSetup()

This member function states that the invoking resource constraint is a setup resource constraint which means that no resource constraint can be previous to it.

This member function should be called only on unary resources and only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


setSlope

public void setSlope(IlcFloat slope, IlcSlopeConstraintMode mode=IlcRoundedCapacity)

This member function creates a slope constraint for the invoking resource constraint, that is the ratio between the capacity of the invoking resource constraint and the duration of its activity is constrained to be slope, with a rounding mode defined by mode. This constraint is internally added to the solver.

The resource of the invoking resource constraint must be a continuous reservoir. The slope of a resource constraint cannot be modified in search but a slope can be set to a resource constraint with no slope defined yet.


setSuccessor

public void setSuccessor(IlcResourceConstraint ct)

This member function states that the invoking resource constraint has the resource constraint ct as successor on the precedence graph of the resource. That is, this member function adds an edge on the precedence graph.

This member function should be called only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


setTeardown

public void setTeardown()

This member function states that the invoking resource constraint is a teardown resource constraint which means that no resource constraint rct can exist such that the invoking resource constraint is previous to rct.

This member function should be called only on unary resources and if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


setVisited

public void setVisited()

This member function sets the activity of the invoking resource constraint to "visited" by the path defined by the sequence constraint attached to its resource. Visited means that the processing time is strictly positive and the required capacity is one.

The resource constraint must be of time extent IlcFromStartToEnd. The resource must be an instance of IlcUnaryResource, closed, and with its sequence constraint created.


surelyContributes

public IlcBool surelyContributes() const

This member function returns IlcTrue if the invoking resource constraint definitely affects the availability of the resource. Otherwise, it returns IlcFalse.


unsetNext

public void unsetNext()

This member function removes a next relation that was previously added on the graph with IlcResourceConstraint::setNext.

This member function should be used only before search and only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


unsetSetup

public void unsetSetup()

This member function removes the information that the invoking resource constraint must be a setup resource constraint as stated by IlcResourceConstraint::setSetup.

This member function should be used only before search and only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).


unsetSuccessor

public void unsetSuccessor(IlcResourceConstraint ct)

This member function removes a successor relation that was previously added on the graph with IlcResourceConstraint::setSuccessor.

This member function should be called only if some precedence information is available on the resource (see member function IlcResource::hasPrecedenceInfo).


unsetTeardown

public void unsetTeardown()

This member function removes the information that the invoking resource constraint must be a teardown resource constraint as stated by IlcResourceConstraint::setTeardown.

This member function should be used only before search and only if some rank information is available on the resource (see member function IlcResource::hasRankInfo).