![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
A Decision represents a choice point in the search tree. The two main
methods are Apply() to go left, or Refute() to go right.
Definition at line 15 of file Decision.java.
Public Member Functions | |
| Decision (long cPtr, boolean cMemoryOwn) | |
| synchronized void | delete () |
| void | swigReleaseOwnership () |
| void | swigTakeOwnership () |
| Decision () | |
| void | apply (Solver s) |
| void | refute (Solver s) |
| String | toString () |
| void | accept (DecisionVisitor visitor) |
| Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
| BaseObject (long cPtr, boolean cMemoryOwn) | |
| BaseObject () | |
Static Public Member Functions | |
| static long | getCPtr (Decision obj) |
| static long | swigRelease (Decision obj) |
| Static Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
| static long | getCPtr (BaseObject obj) |
| static long | swigRelease (BaseObject obj) |
Protected Member Functions | |
| void | finalize () |
| void | swigDirectorDisconnect () |
Additional Inherited Members | |
| Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject | |
| transient boolean | swigCMemOwn |
| com.google.ortools.constraintsolver.Decision.Decision | ( | long | cPtr, |
| boolean | cMemoryOwn ) |
Definition at line 18 of file Decision.java.
| com.google.ortools.constraintsolver.Decision.Decision | ( | ) |
Definition at line 70 of file Decision.java.
| void com.google.ortools.constraintsolver.Decision.accept | ( | DecisionVisitor | visitor | ) |
Accepts the given visitor.
Definition at line 96 of file Decision.java.
| void com.google.ortools.constraintsolver.Decision.apply | ( | Solver | s | ) |
Apply will be called first when the decision is executed.
Definition at line 78 of file Decision.java.
| synchronized void com.google.ortools.constraintsolver.Decision.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Definition at line 44 of file Decision.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Definition at line 40 of file Decision.java.
|
static |
Definition at line 23 of file Decision.java.
| void com.google.ortools.constraintsolver.Decision.refute | ( | Solver | s | ) |
Refute will be called after a backtrack.
Definition at line 85 of file Decision.java.
|
protected |
Definition at line 55 of file Decision.java.
|
static |
Definition at line 27 of file Decision.java.
| void com.google.ortools.constraintsolver.Decision.swigReleaseOwnership | ( | ) |
Definition at line 60 of file Decision.java.
| void com.google.ortools.constraintsolver.Decision.swigTakeOwnership | ( | ) |
Definition at line 65 of file Decision.java.
| String com.google.ortools.constraintsolver.Decision.toString | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Definition at line 89 of file Decision.java.