Class Decision
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.Decision
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(DecisionVisitor visitor) Accepts the given visitor.voidApply will be called first when the decision is executed.voiddelete()protected voidfinalize()static longvoidRefute will be called after a backtrack.protected voidstatic longswigRelease(Decision obj) voidvoidtoString()Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease
-
Constructor Details
-
Decision
public Decision(long cPtr, boolean cMemoryOwn) -
Decision
public Decision()
-
-
Method Details
-
getCPtr
-
swigRelease
-
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
- Overrides:
toStringin classBaseObject
-
accept
Accepts the given visitor.
-