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 TypeMethodDescriptionvoid
accept
(DecisionVisitor visitor) Accepts the given visitor.void
Apply will be called first when the decision is executed.void
delete()
protected void
finalize()
static long
void
Refute will be called after a backtrack.protected void
static long
swigRelease
(Decision obj) void
void
toString()
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:
finalize
in classBaseObject
-
delete
public void delete()- Overrides:
delete
in 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:
toString
in classBaseObject
-
accept
Accepts the given visitor.
-