Overview | Group | Tree | Graph | Index | Concepts |
Instances of the class IlcPrecedenceConstraint
are
temporalconstraints. These temporal constraints express
precedence between activities in a schedule. (Other temporal
constraints, such as instances of IlcTimeBoundConstraint
, express constraints on the time
interval in which an activity is to be scheduled.)
This class inherits from the Solver class IlcConstraint
.
That class is documented in the IBM ILOG Solver Reference Manual.
Instances of this class are created by these member functions:
IlcActivity::startsAfterStart
IlcActivity::startsAfterEnd
IlcActivity::endsAfterStart
IlcActivity::endsAfterEnd
IlcActivity::startsAtStart
IlcActivity::startsAtEnd
IlcActivity::endsAtStart
IlcActivity::endsAtEnd
For more information, see
Metaconstraints,
and IlcConstraint
in the IBM ILOG Solver Reference Manual.
See Also:
IlcActivity, IlcPrecedenceConstraintType, IlcTimeBoundConstraint
Constructor Summary | |
---|---|
public | IlcPrecedenceConstraint() |
public | IlcPrecedenceConstraint(IlcPrecedenceConstraintI * impl) |
Method Summary | |
---|---|
public IlcInt | getDelay() const |
public IlcIntVar | getDelayVariable() const |
public IlcActivity | getFollowingActivity() const |
public IlcPrecedenceConstraintI * | getImpl() const |
public IlcActivity | getPrecedingActivity() const |
public IlcPrecedenceConstraintType | getType() const |
public IlcBool | hasDelayVariable() const |
public void | operator=(const IlcPrecedenceConstraint & h) |
Constructor Detail |
---|
Method Detail |
---|
This member function returns the delay of the invoking precedence constraint.
Example
The statement
m.add(act2.startsAfterEnd(act1, delay));
posts the constraint that at least the given delay
must elapse
between the end of the preceding activity act1
and the start
of the following activity act2
.
This member function returns the delay variable of the invoking precedence constraint.
This member function returns the following activity of the invoking precedence constraint.
This member function returns the preceding activity of the invoking precedence constraint.
This member function returns the type of the invoking precedence constraint.
This member function returns IlcTrue
if the
invoking precedence constraint has a delay variable.
Otherwise, it returns IlcFalse
.