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

Public Member Functions

synchronized void delete ()
 
void swigReleaseOwnership ()
 
void swigTakeOwnership ()
 
 Decision ()
 
void apply (Solver s)
 
void refute (Solver s)
 
String toString ()
 
void accept (DecisionVisitor visitor)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 

Protected Member Functions

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

static long getCPtr (Decision obj)
 
static long swigRelease (Decision obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
static long getCPtr (BaseObject obj)
 
static long swigRelease (BaseObject obj)
 

Additional Inherited Members

- Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject
transient boolean swigCMemOwn
 

Detailed Description

A Decision represents a choice point in the search tree. The two main
methods are Apply() to go left, or Refute() to go right.

Definition at line 15 of file Decision.java.

Constructor & Destructor Documentation

◆ Decision() [1/2]

com.google.ortools.constraintsolver.Decision.Decision ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 18 of file Decision.java.

◆ Decision() [2/2]

com.google.ortools.constraintsolver.Decision.Decision ( )

Definition at line 70 of file Decision.java.

Member Function Documentation

◆ accept()

void com.google.ortools.constraintsolver.Decision.accept ( DecisionVisitor visitor)

Accepts the given visitor.

Definition at line 96 of file Decision.java.

◆ apply()

void com.google.ortools.constraintsolver.Decision.apply ( Solver s)

Apply will be called first when the decision is executed.

Definition at line 78 of file Decision.java.

◆ delete()

synchronized void com.google.ortools.constraintsolver.Decision.delete ( )

Reimplemented from com.google.ortools.constraintsolver.BaseObject.

Definition at line 44 of file Decision.java.

◆ finalize()

void com.google.ortools.constraintsolver.Decision.finalize ( )
protected

Reimplemented from com.google.ortools.constraintsolver.BaseObject.

Definition at line 40 of file Decision.java.

◆ getCPtr()

static long com.google.ortools.constraintsolver.Decision.getCPtr ( Decision obj)
staticprotected

Definition at line 23 of file Decision.java.

◆ refute()

void com.google.ortools.constraintsolver.Decision.refute ( Solver s)

Refute will be called after a backtrack.

Definition at line 85 of file Decision.java.

◆ swigDirectorDisconnect()

void com.google.ortools.constraintsolver.Decision.swigDirectorDisconnect ( )
protected

Definition at line 55 of file Decision.java.

◆ swigRelease()

static long com.google.ortools.constraintsolver.Decision.swigRelease ( Decision obj)
staticprotected

Definition at line 27 of file Decision.java.

◆ swigReleaseOwnership()

void com.google.ortools.constraintsolver.Decision.swigReleaseOwnership ( )

Definition at line 60 of file Decision.java.

◆ swigTakeOwnership()

void com.google.ortools.constraintsolver.Decision.swigTakeOwnership ( )

Definition at line 65 of file Decision.java.

◆ toString()

String com.google.ortools.constraintsolver.Decision.toString ( )

Reimplemented from com.google.ortools.constraintsolver.BaseObject.

Definition at line 89 of file Decision.java.


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