Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.JavaDecisionBuilder Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.JavaDecisionBuilder:
com.google.ortools.constraintsolver.DecisionBuilder com.google.ortools.constraintsolver.DecisionBuilder com.google.ortools.constraintsolver.BaseObject com.google.ortools.constraintsolver.BaseObject

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
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from com.google.ortools.constraintsolver.DecisionBuilder
 DecisionBuilder (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 
void swigDirectorDisconnect ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject (long cPtr, boolean cMemoryOwn)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.DecisionBuilder
static long getCPtr (DecisionBuilder obj)
 
static long swigRelease (DecisionBuilder obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
static long getCPtr (BaseObject obj)
 
static long swigRelease (BaseObject obj)
 
- Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject
transient boolean swigCMemOwn
 

Detailed Description

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.

Member Function Documentation

◆ next() [1/2]

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.

◆ next() [2/2]

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.

◆ nextWrap() [1/2]

final Decision com.google.ortools.constraintsolver.JavaDecisionBuilder.nextWrap ( Solver solver)

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.

◆ nextWrap() [2/2]

final Decision com.google.ortools.constraintsolver.JavaDecisionBuilder.nextWrap ( Solver solver)

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.


The documentation for this class was generated from the following files: