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.voiddelete()voidThis method pushes the demon onto the propagation queue.voidenqueueVar(Demon d) protected voidfinalize()voidThis method freezes the propagation queue.static longbooleanhasName()Returns whether the object has been named or not.name()Object naming.voidThis method clears the failure callback.voidShortcut for variable cleaner.voidsolver()static longtoString()voidThis 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:
finalizein classBaseObject
-
delete
public void delete()- Overrides:
deletein classBaseObject
-
toString
- Overrides:
toStringin 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.
-