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
public class DisjunctiveConstraint extends Constraint
-
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn -
Constructor Summary
Constructors Modifier Constructor Description protectedDisjunctiveConstraint(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(DisjunctiveConstraint obj)SequenceVarmakeSequenceVar()Creates a sequence variable from the constraint.voidsetTransitionTime(java.util.function.LongBinaryOperator transition_time)Add a transition time between intervals.longtransitionTime(int before_index, int after_index)Methods inherited from class com.google.ortools.constraintsolver.Constraint
accept, getCPtr, initialPropagate, isCastConstraint, post, postAndPropagate, 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, unfreezeQueueMethods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtrMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DisjunctiveConstraint
protected DisjunctiveConstraint(long cPtr, boolean cMemoryOwn)
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classConstraint
-
delete
public void delete()- Overrides:
deletein classConstraint
-
makeSequenceVar
Creates a sequence variable from the constraint. -
setTransitionTime
public void setTransitionTime(java.util.function.LongBinaryOperator transition_time)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)
-