Class DecisionBuilder
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.DecisionBuilder
- Direct Known Subclasses:
JavaDecisionBuilder
public class DecisionBuilder extends BaseObject
A DecisionBuilder is responsible for creating the search tree. The
important method is Next(), which returns the next decision to execute.
important method is Next(), which returns the next decision to execute.
-
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn -
Constructor Summary
Constructors Modifier Constructor Description DecisionBuilder()protectedDecisionBuilder(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(DecisionBuilder obj)DecisionnextWrap(Solver s)This is the main method of the decision builder class.protected voidswigDirectorDisconnect()voidswigReleaseOwnership()voidswigTakeOwnership()java.lang.StringtoString()Methods 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
-
DecisionBuilder
protected DecisionBuilder(long cPtr, boolean cMemoryOwn) -
DecisionBuilder
public DecisionBuilder()
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classBaseObject
-
delete
public void delete()- Overrides:
deletein classBaseObject
-
swigDirectorDisconnect
protected void swigDirectorDisconnect() -
swigReleaseOwnership
public void swigReleaseOwnership() -
swigTakeOwnership
public void swigTakeOwnership() -
nextWrap
This is the main method of the decision builder class. It must
return a decision (an instance of the class Decision). If it
returns nullptr, this means that the decision builder has finished
its work. -
toString
public java.lang.String toString()- Overrides:
toStringin classBaseObject
-