Class DisjunctiveConstraint
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.PropagationBaseObject
com.google.ortools.constraintsolver.Constraint
com.google.ortools.constraintsolver.DisjunctiveConstraint
-
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
protected void
finalize()
static long
Creates a sequence variable from the constraint.void
setTransitionTime
(LongBinaryOperator transition_time) Add a transition time between intervals.static long
long
transitionTime
(int before_index, int after_index) Methods inherited from class com.google.ortools.constraintsolver.Constraint
accept, getCPtr, initialPropagate, isCastConstraint, post, postAndPropagate, swigRelease, toString, var
Methods inherited from class com.google.ortools.constraintsolver.PropagationBaseObject
baseName, enqueueDelayedDemon, enqueueVar, freezeQueue, getCPtr, hasName, name, reset_action_on_fail, set_variable_to_clean_on_fail, setName, solver, swigRelease, unfreezeQueue
Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease
-
Constructor Details
-
DisjunctiveConstraint
public DisjunctiveConstraint(long cPtr, boolean cMemoryOwn)
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classConstraint
-
delete
public void delete()- Overrides:
delete
in classConstraint
-
makeSequenceVar
Creates a sequence variable from the constraint. -
setTransitionTime
Add a transition time between intervals. It forces the distance between
the end of interval a and start of interval b that follows it to be at
least transition_time(a, b). This function must always return
a positive or null value. -
transitionTime
public long transitionTime(int before_index, int after_index)
-