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.
-
-
Field Summary
-
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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()protected static longswigRelease(Decision obj)voidswigReleaseOwnership()voidswigTakeOwnership()java.lang.StringtoString()-
Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease
-
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(Decision obj)
-
swigRelease
protected static long swigRelease(Decision obj)
-
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
public void apply(Solver s)
Apply will be called first when the decision is executed.
-
refute
public void refute(Solver s)
Refute will be called after a backtrack.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBaseObject
-
accept
public void accept(DecisionVisitor visitor)
Accepts the given visitor.
-
-