Class JavaDecisionBuilder
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.DecisionBuilder
com.google.ortools.constraintsolver.JavaDecisionBuilder
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.
-
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.ortools.constraintsolver.DecisionBuilder
delete, finalize, getCPtr, GetName, set_name, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnership, toString
Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease
-
Constructor Details
-
JavaDecisionBuilder
public JavaDecisionBuilder()
-
-
Method Details
-
nextWrap
This methods wraps the calls to next() and catches fail exceptions.- Overrides:
nextWrap
in classDecisionBuilder
-
next
This is the new method to subclass when defining a java decision builder.- Throws:
Solver.FailException
-