Class PropagationBaseObject
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.PropagationBaseObject
- Direct Known Subclasses:
Assignment
,Constraint
,IntervalVar
,IntExpr
,SequenceVar
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.
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.
-
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseName()
Returns a base name for automatic naming.void
delete()
void
This method pushes the demon onto the propagation queue.void
enqueueVar
(Demon d) protected void
finalize()
void
This method freezes the propagation queue.static long
boolean
hasName()
Returns whether the object has been named or not.name()
Object naming.void
This method clears the failure callback.void
Shortcut for variable cleaner.void
solver()
static long
toString()
void
This method unfreezes the propagation queue.Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease
-
Constructor Details
-
PropagationBaseObject
public PropagationBaseObject(long cPtr, boolean cMemoryOwn) -
PropagationBaseObject
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classBaseObject
-
delete
public void delete()- Overrides:
delete
in classBaseObject
-
toString
- Overrides:
toString
in classBaseObject
-
solver
-
freezeQueue
public void freezeQueue()This method freezes the propagation queue. It is useful when you
need to apply multiple modifications at once. -
unfreezeQueue
public void unfreezeQueue()This method unfreezes the propagation queue. All modifications
that happened when the queue was frozen will be processed. -
enqueueDelayedDemon
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. -
enqueueVar
-
reset_action_on_fail
public void reset_action_on_fail()This method clears the failure callback. -
set_variable_to_clean_on_fail
Shortcut for variable cleaner. -
name
Object naming. -
setName
-
hasName
public boolean hasName()Returns whether the object has been named or not. -
baseName
Returns a base name for automatic naming.
-