Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.PropagationBaseObject Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.PropagationBaseObject:
com.google.ortools.constraintsolver.BaseObject com.google.ortools.constraintsolver.Assignment com.google.ortools.constraintsolver.Constraint com.google.ortools.constraintsolver.IntExpr com.google.ortools.constraintsolver.IntervalVar com.google.ortools.constraintsolver.SequenceVar com.google.ortools.constraintsolver.CastConstraint com.google.ortools.constraintsolver.DisjunctiveConstraint com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint com.google.ortools.constraintsolver.Pack com.google.ortools.constraintsolver.TypeRegulationsConstraint com.google.ortools.constraintsolver.BaseIntExpr com.google.ortools.constraintsolver.IntVar com.google.ortools.constraintsolver.BooleanVar

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PropagationBaseObject() [1/2]

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

Definition at line 20 of file PropagationBaseObject.java.

◆ PropagationBaseObject() [2/2]

com.google.ortools.constraintsolver.PropagationBaseObject.PropagationBaseObject ( Solver s)

Definition at line 57 of file PropagationBaseObject.java.

Member Function Documentation

◆ baseName()

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.

◆ delete()

◆ enqueueDelayedDemon()

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.

◆ enqueueVar()

void com.google.ortools.constraintsolver.PropagationBaseObject.enqueueVar ( Demon d)

Definition at line 95 of file PropagationBaseObject.java.

◆ finalize()

◆ freezeQueue()

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.

◆ getCPtr()

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

Definition at line 25 of file PropagationBaseObject.java.

◆ hasName()

boolean com.google.ortools.constraintsolver.PropagationBaseObject.hasName ( )

Returns whether the object has been named or not.

Definition at line 127 of file PropagationBaseObject.java.

◆ name()

String com.google.ortools.constraintsolver.PropagationBaseObject.name ( )

Object naming.

Definition at line 116 of file PropagationBaseObject.java.

◆ reset_action_on_fail()

void com.google.ortools.constraintsolver.PropagationBaseObject.reset_action_on_fail ( )

This method clears the failure callback.

Definition at line 102 of file PropagationBaseObject.java.

◆ set_variable_to_clean_on_fail()

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.

◆ setName()

void com.google.ortools.constraintsolver.PropagationBaseObject.setName ( String name)

Definition at line 120 of file PropagationBaseObject.java.

◆ solver()

Solver com.google.ortools.constraintsolver.PropagationBaseObject.solver ( )

Definition at line 65 of file PropagationBaseObject.java.

◆ swigRelease()

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

Definition at line 29 of file PropagationBaseObject.java.

◆ toString()

◆ unfreezeQueue()

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.


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