![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
This class acts as a intermediate step between a c++ decision builder and a java one. Its main purpose is to catch the java exception launched when a failure occurs during the Next() call, and to return silently a FailDecision that will propagate the failure back to the C++ code.
Definition at line 23 of file JavaDecisionBuilder.java.
Public Member Functions | |
| final Decision | nextWrap (Solver solver) |
| Decision | next (Solver solver) throws Solver.FailException |
| final Decision | nextWrap (Solver solver) |
| Decision | next (Solver solver) throws Solver.FailException |
| Public Member Functions inherited from com.google.ortools.constraintsolver.DecisionBuilder | |
| DecisionBuilder (long cPtr, boolean cMemoryOwn) | |
| synchronized void | delete () |
| void | swigReleaseOwnership () |
| void | swigTakeOwnership () |
| DecisionBuilder () | |
| String | toString () |
| void | set_name (String name) |
| String | GetName () |
| Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
| BaseObject (long cPtr, boolean cMemoryOwn) | |
| BaseObject () | |
Additional Inherited Members | |
| Static Public Member Functions inherited from com.google.ortools.constraintsolver.DecisionBuilder | |
| static long | getCPtr (DecisionBuilder obj) |
| static long | swigRelease (DecisionBuilder 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 inherited from com.google.ortools.constraintsolver.DecisionBuilder | |
| void | finalize () |
| void | swigDirectorDisconnect () |
| Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject | |
| transient boolean | swigCMemOwn |
| Decision com.google.ortools.constraintsolver.JavaDecisionBuilder.next | ( | Solver | solver | ) | throws Solver.FailException |
This is the new method to subclass when defining a java decision builder.
Definition at line 36 of file JavaDecisionBuilder.java.
| Decision com.google.ortools.constraintsolver.JavaDecisionBuilder.next | ( | Solver | solver | ) | throws Solver.FailException |
This is the new method to subclass when defining a java decision builder.
Definition at line 36 of file JavaDecisionBuilder.java.
This methods wraps the calls to next() and catches fail exceptions.
Reimplemented from com.google.ortools.constraintsolver.DecisionBuilder.
Definition at line 26 of file JavaDecisionBuilder.java.
This methods wraps the calls to next() and catches fail exceptions.
Reimplemented from com.google.ortools.constraintsolver.DecisionBuilder.
Definition at line 26 of file JavaDecisionBuilder.java.