FRAMES NO FRAMES

Class IlcTimeBoundConstraint

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

Instances of the class IlcTimeBoundConstraint are temporalconstraints. These temporal constraints express constraints on the time interval in which an activity is to be scheduled. (Other temporal constraints—instances of IlcPrecedenceConstraint—express precedence between activities in a schedule.)

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 Metaconstraints, and IlcConstraint in the IBM ILOG Solver Reference Manual.

See Also:

Constructor Summary
public IlcTimeBoundConstraint()
public IlcTimeBoundConstraint(IlcTimeBoundConstraintI * impl)
Method Summary
public IlcActivitygetActivity() const
public IlcTimeBoundConstraintI *getImpl() const
public IlcIntgetTimeBound() const
public IlcIntVargetTimeBoundVariable() const
public IlcTimeBoundConstraintTypegetType() const
public IlcBoolhasTimeBoundVariable() const
public voidoperator=(const IlcTimeBoundConstraint & h)
Constructor Detail

IlcTimeBoundConstraint

public IlcTimeBoundConstraint()
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.

IlcTimeBoundConstraint

public IlcTimeBoundConstraint(IlcTimeBoundConstraintI * 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 time-bound constraint.


getImpl

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

getTimeBound

public IlcInt getTimeBound() const

This member function returns the time bound of the invoking time-bound constraint.


getTimeBoundVariable

public IlcIntVar getTimeBoundVariable() const

This member function returns the time-bound variable of the invoking time-bound constraint.


getType

public IlcTimeBoundConstraintType getType() const

This member function returns the type of the invoking time-bound constraint.


hasTimeBoundVariable

public IlcBool hasTimeBoundVariable() const

This member function returns IlcTrue if the invoking time-bound constraint has a time-bound variable. Otherwise, it returns IlcFalse.


operator=

public void operator=(const IlcTimeBoundConstraint & 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.