Class SequenceVarElement
- java.lang.Object
-
- com.google.ortools.constraintsolver.AssignmentElement
-
- com.google.ortools.constraintsolver.SequenceVarElement
-
public class SequenceVarElement extends AssignmentElement
The SequenceVarElement stores a partial representation of ranked
interval variables in the underlying sequence variable.
This representation consists of three vectors:
- the forward sequence. That is the list of interval variables
ranked first in the sequence. The first element of the backward
sequence is the first interval in the sequence variable.
- the backward sequence. That is the list of interval variables
ranked last in the sequence. The first element of the backward
sequence is the last interval in the sequence variable.
- The list of unperformed interval variables.
Furthermore, if all performed variables are ranked, then by
convention, the forward_sequence will contain all such variables
and the backward_sequence will be empty.
-
-
Field Summary
-
Fields inherited from class com.google.ortools.constraintsolver.AssignmentElement
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description SequenceVarElement()protectedSequenceVarElement(long cPtr, boolean cMemoryOwn)SequenceVarElement(SequenceVar var)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]backwardSequence()booleanbound()SequenceVarElementclone()voidcopy(SequenceVarElement element)voiddelete()protected voidfinalize()int[]forwardSequence()protected static longgetCPtr(SequenceVarElement obj)voidreset(SequenceVar var)voidrestore()voidsetBackwardSequence(int[] backward_sequence)voidsetForwardSequence(int[] forward_sequence)voidsetSequence(int[] forward_sequence, int[] backward_sequence, int[] unperformed)voidsetUnperformed(int[] unperformed)voidstore()protected static longswigRelease(SequenceVarElement obj)java.lang.StringtoString()int[]unperformed()SequenceVarvar()-
Methods inherited from class com.google.ortools.constraintsolver.AssignmentElement
activate, activated, deactivate, getCPtr, swigRelease
-
-
-
-
Constructor Detail
-
SequenceVarElement
protected SequenceVarElement(long cPtr, boolean cMemoryOwn)
-
SequenceVarElement
public SequenceVarElement()
-
SequenceVarElement
public SequenceVarElement(SequenceVar var)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(SequenceVarElement obj)
-
swigRelease
protected static long swigRelease(SequenceVarElement obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classAssignmentElement
-
delete
public void delete()
- Overrides:
deletein classAssignmentElement
-
reset
public void reset(SequenceVar var)
-
clone
public SequenceVarElement clone()
- Overrides:
clonein classjava.lang.Object
-
copy
public void copy(SequenceVarElement element)
-
var
public SequenceVar var()
-
store
public void store()
-
restore
public void restore()
-
forwardSequence
public int[] forwardSequence()
-
backwardSequence
public int[] backwardSequence()
-
unperformed
public int[] unperformed()
-
setSequence
public void setSequence(int[] forward_sequence, int[] backward_sequence, int[] unperformed)
-
setForwardSequence
public void setForwardSequence(int[] forward_sequence)
-
setBackwardSequence
public void setBackwardSequence(int[] backward_sequence)
-
setUnperformed
public void setUnperformed(int[] unperformed)
-
bound
public boolean bound()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-