FRAMES NO FRAMES

Class IloTimeBoundConstraint

Definition file: ilsched/iloactivity.h
Include file: <ilsched/iloscheduler.h>

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

This class inherits from the Concert Technology class IloConstraint, which is documented in the IBM ILOG Concert Technology Reference Manual.

Instances of this class are created by these member functions:

For more information, see IloConstraint in the IBM ILOG Concert Technology Reference Manual, and Temporal Relations.

See Also:

Constructor Summary
public IloTimeBoundConstraint()
public IloTimeBoundConstraint(IloTimeBoundConstraintI * impl)
Method Summary
public IloActivitygetActivity() const
public IloTimeBoundConstraintI *getImpl() const
public IloNumgetTimeBound() const
public IloNumVargetTimeBoundVariable() const
public IloTimeBoundConstraintTypegetType() const
public IloBoolhasTimeBoundVariable() const
Constructor Detail

IloTimeBoundConstraint

public IloTimeBoundConstraint()
This constructor creates an instance that 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.

IloTimeBoundConstraint

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

Method Detail

getActivity

public IloActivity getActivity() const

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


getImpl

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

getTimeBound

public IloNum getTimeBound() const

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


getTimeBoundVariable

public IloNumVar getTimeBoundVariable() const

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


getType

public IloTimeBoundConstraintType getType() const

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


hasTimeBoundVariable

public IloBool hasTimeBoundVariable() const

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