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
All Methods Static Methods Instance Methods Concrete Methods 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.protected static longswigRelease(DisjunctiveConstraint obj)longtransitionTime(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
-
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(DisjunctiveConstraint obj)
-
swigRelease
protected static long swigRelease(DisjunctiveConstraint obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classConstraint
-
delete
public void delete()
- Overrides:
deletein classConstraint
-
makeSequenceVar
public SequenceVar 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)
-
-