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 TypeMethodDescriptionvoiddelete()protected voidfinalize()static longCreates a sequence variable from the constraint.voidsetTransitionTime(LongBinaryOperator transition_time) Add a transition time between intervals.static longlongtransitionTime(int before_index, int after_index) Methods inherited from class com.google.ortools.constraintsolver.Constraint
accept, getCPtr, initialPropagate, isCastConstraint, post, postAndPropagate, swigRelease, toString, varMethods 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, unfreezeQueueMethods 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:
finalizein classConstraint
-
delete
public void delete()- Overrides:
deletein 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)
-