Class JavaDecisionBuilder
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.DecisionBuilder
com.google.ortools.constraintsolver.JavaDecisionBuilder
public class JavaDecisionBuilder extends DecisionBuilder
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 Constructor Description JavaDecisionBuilder() -
Method Summary
Methods inherited from class com.google.ortools.constraintsolver.DecisionBuilder
delete, finalize, getCPtr, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership, toStringMethods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtrMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
JavaDecisionBuilder
public JavaDecisionBuilder()
-
-
Method Details
-
nextWrap
This methods wraps the calls to next() and catches fail exceptions.- Overrides:
nextWrapin classDecisionBuilder
-
next
This is the new method to subclass when defining a java decision builder.- Throws:
Solver.FailException
-