Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
synchronized void | delete () |
PropagationBaseObject (Solver s) | |
String | toString () |
Solver | solver () |
void | freezeQueue () |
void | unfreezeQueue () |
void | enqueueDelayedDemon (Demon d) |
void | enqueueVar (Demon d) |
void | reset_action_on_fail () |
void | set_variable_to_clean_on_fail (IntVar v) |
String | name () |
void | setName (String name) |
boolean | hasName () |
String | baseName () |
Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject () | |
Protected Member Functions | |
PropagationBaseObject (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject (long cPtr, boolean cMemoryOwn) | |
Static Protected Member Functions | |
static long | getCPtr (PropagationBaseObject obj) |
static long | swigRelease (PropagationBaseObject 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 |
NOLINT
The PropagationBaseObject is a subclass of BaseObject that is also
friend to the Solver class. It allows accessing methods useful when
writing new constraints or new expressions.
Definition at line 17 of file PropagationBaseObject.java.
|
protected |
Definition at line 20 of file PropagationBaseObject.java.
com.google.ortools.constraintsolver.PropagationBaseObject.PropagationBaseObject | ( | Solver | s | ) |
Definition at line 57 of file PropagationBaseObject.java.
String com.google.ortools.constraintsolver.PropagationBaseObject.baseName | ( | ) |
Returns a base name for automatic naming.
Reimplemented in com.google.ortools.constraintsolver.BooleanVar.
Definition at line 134 of file PropagationBaseObject.java.
synchronized void com.google.ortools.constraintsolver.PropagationBaseObject.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Reimplemented in com.google.ortools.constraintsolver.Assignment, com.google.ortools.constraintsolver.BaseIntExpr, com.google.ortools.constraintsolver.BooleanVar, com.google.ortools.constraintsolver.CastConstraint, com.google.ortools.constraintsolver.Constraint, com.google.ortools.constraintsolver.DisjunctiveConstraint, com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint, com.google.ortools.constraintsolver.IntervalVar, com.google.ortools.constraintsolver.IntExpr, com.google.ortools.constraintsolver.IntVar, com.google.ortools.constraintsolver.Pack, com.google.ortools.constraintsolver.SequenceVar, and com.google.ortools.constraintsolver.TypeRegulationsConstraint.
Definition at line 46 of file PropagationBaseObject.java.
void com.google.ortools.constraintsolver.PropagationBaseObject.enqueueDelayedDemon | ( | Demon | d | ) |
This method pushes the demon onto the propagation queue. It will
be processed directly if the queue is empty. It will be enqueued
according to its priority otherwise.
Definition at line 91 of file PropagationBaseObject.java.
void com.google.ortools.constraintsolver.PropagationBaseObject.enqueueVar | ( | Demon | d | ) |
Definition at line 95 of file PropagationBaseObject.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Reimplemented in com.google.ortools.constraintsolver.Assignment, com.google.ortools.constraintsolver.BaseIntExpr, com.google.ortools.constraintsolver.BooleanVar, com.google.ortools.constraintsolver.CastConstraint, com.google.ortools.constraintsolver.Constraint, com.google.ortools.constraintsolver.DisjunctiveConstraint, com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint, com.google.ortools.constraintsolver.IntervalVar, com.google.ortools.constraintsolver.IntExpr, com.google.ortools.constraintsolver.IntVar, com.google.ortools.constraintsolver.Pack, com.google.ortools.constraintsolver.SequenceVar, and com.google.ortools.constraintsolver.TypeRegulationsConstraint.
Definition at line 42 of file PropagationBaseObject.java.
void com.google.ortools.constraintsolver.PropagationBaseObject.freezeQueue | ( | ) |
This method freezes the propagation queue. It is useful when you
need to apply multiple modifications at once.
Definition at line 74 of file PropagationBaseObject.java.
|
staticprotected |
Definition at line 25 of file PropagationBaseObject.java.
boolean com.google.ortools.constraintsolver.PropagationBaseObject.hasName | ( | ) |
Returns whether the object has been named or not.
Definition at line 127 of file PropagationBaseObject.java.
String com.google.ortools.constraintsolver.PropagationBaseObject.name | ( | ) |
Object naming.
Definition at line 116 of file PropagationBaseObject.java.
void com.google.ortools.constraintsolver.PropagationBaseObject.reset_action_on_fail | ( | ) |
This method clears the failure callback.
Definition at line 102 of file PropagationBaseObject.java.
void com.google.ortools.constraintsolver.PropagationBaseObject.set_variable_to_clean_on_fail | ( | IntVar | v | ) |
Shortcut for variable cleaner.
Definition at line 109 of file PropagationBaseObject.java.
void com.google.ortools.constraintsolver.PropagationBaseObject.setName | ( | String | name | ) |
Definition at line 120 of file PropagationBaseObject.java.
Solver com.google.ortools.constraintsolver.PropagationBaseObject.solver | ( | ) |
Definition at line 65 of file PropagationBaseObject.java.
|
staticprotected |
Definition at line 29 of file PropagationBaseObject.java.
String com.google.ortools.constraintsolver.PropagationBaseObject.toString | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Reimplemented in com.google.ortools.constraintsolver.Assignment, com.google.ortools.constraintsolver.BooleanVar, com.google.ortools.constraintsolver.Constraint, com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint, com.google.ortools.constraintsolver.Pack, and com.google.ortools.constraintsolver.SequenceVar.
Definition at line 61 of file PropagationBaseObject.java.
void com.google.ortools.constraintsolver.PropagationBaseObject.unfreezeQueue | ( | ) |
This method unfreezes the propagation queue. All modifications
that happened when the queue was frozen will be processed.
Definition at line 82 of file PropagationBaseObject.java.