Class Decision
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.Decision
public class Decision extends BaseObject
A Decision represents a choice point in the search tree. The two main
methods are Apply() to go left, or Refute() to go right.
methods are Apply() to go left, or Refute() to go right.
-
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaccept(DecisionVisitor visitor)Accepts the given visitor.voidapply(Solver s)Apply will be called first when the decision is executed.voiddelete()protected voidfinalize()protected static longgetCPtr(Decision obj)voidrefute(Solver s)Refute will be called after a backtrack.protected voidswigDirectorDisconnect()voidswigReleaseOwnership()voidswigTakeOwnership()java.lang.StringtoString()Methods 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
-
Decision
protected Decision(long cPtr, boolean cMemoryOwn) -
Decision
public Decision()
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classBaseObject
-
delete
public void delete()- Overrides:
deletein classBaseObject
-
swigDirectorDisconnect
protected void swigDirectorDisconnect() -
swigReleaseOwnership
public void swigReleaseOwnership() -
swigTakeOwnership
public void swigTakeOwnership() -
apply
Apply will be called first when the decision is executed. -
refute
Refute will be called after a backtrack. -
toString
public java.lang.String toString()- Overrides:
toStringin classBaseObject
-
accept
Accepts the given visitor.
-