This method assumes that interval sequence variable seq is fixed. It returns the interval variable that immediately precedes interval a in the sequence.

Namespace: ILOG.CP
Assembly: ILOG.CP (in ILOG.CP.dll)

Syntax

C#
public IIntervalVar GetPrev(
	IIntervalSequenceVar seq,
	IIntervalVar a
)
Visual Basic
Public Function GetPrev ( _
	seq As IIntervalSequenceVar, _
	a As IIntervalVar _
) As IIntervalVar

Remarks

The returned interval variable is necessarily present. An assertion is violated if a is absent or is not an interval variable of sequence seq and if the sequence is not fixed. If a is at the first position of the sequence, the function returns an empty handle. This method can be used to print the reverse total order corresponding to the sequence value. For more information on interval sequence variables, see the Concepts section of the C++ API Reference Manual.

See Also