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: ILOG.CP (in ILOG.CP.dll)

Syntax

C#
public IIntervalVar GetFirst(
	IIntervalSequenceVar seq
)
Visual Basic
Public Function GetFirst ( _
	seq As IIntervalSequenceVar _
) As IIntervalVar

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.

See Also