This method assumes that interval sequence variable seq is fixed.
It returns the interval variable at the first position in the sequence.
Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
public IIntervalVar GetFirst( IIntervalSequenceVar seq ) |
Parameters
Remarks
The returned interval variable is necessarily present. If all interval variables of the sequence are absent, it returns an empty handle. An assertion is violated if the sequence seq is not fixed. This method can be used to print the total order corresponding to the sequence value as illustrated by the following code sample.
Examples
for (IIntervalVar)
a = cp.GetFirst(seq);
a.getImpl()!=0;
a = cp.GetNext(seq, a); cp.out() << cp.domain(a) << std::endl;
For more information on interval sequence variables, see the Concepts section of the C++ API Reference Manual.