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.
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(DecisionBuilder obj)java.lang.StringGetName()DecisionnextWrap(Solver s)This is the main method of the decision builder class.voidset_name(SWIGTYPE_p_absl__string_view name)protected voidswigDirectorDisconnect()protected static longswigRelease(DecisionBuilder obj)voidswigReleaseOwnership()voidswigTakeOwnership()java.lang.StringtoString()-
Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease
-
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(DecisionBuilder obj)
-
swigRelease
protected static long swigRelease(DecisionBuilder obj)
-
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
public Decision nextWrap(Solver s)
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
-
set_name
public void set_name(SWIGTYPE_p_absl__string_view name)
-
GetName
public java.lang.String GetName()
-
-