public class Constraint extends PropagationBaseObject
swigCMemOwn| Modifier | Constructor and Description |
|---|---|
protected |
Constraint(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ModelVisitor visitor)
Accepts the given visitor.
|
void |
delete() |
protected void |
finalize() |
protected static long |
getCPtr(Constraint obj) |
void |
initialPropagate()
This method performs the initial propagation of the
constraint. |
boolean |
isCastConstraint()
Is the constraint created by a cast from expression to integer variable?
|
void |
post()
This method is called when the constraint is processed by the
solver. |
void |
postAndPropagate()
Calls Post and then Propagate to initialize the constraints.
|
protected static long |
swigRelease(Constraint obj) |
java.lang.String |
toString() |
IntVar |
var()
Creates a Boolean variable representing the status of the constraint
(false = constraint is violated, true = constraint is satisfied). |
baseName, enqueueDelayedDemon, enqueueVar, freezeQueue, getCPtr, hasName, name, reset_action_on_fail, set_variable_to_clean_on_fail, setName, solver, swigRelease, unfreezeQueuegetCPtr, swigReleaseprotected static long getCPtr(Constraint obj)
protected static long swigRelease(Constraint obj)
protected void finalize()
finalize in class PropagationBaseObjectpublic void delete()
delete in class PropagationBaseObjectpublic void post()
public void initialPropagate()
public java.lang.String toString()
toString in class PropagationBaseObjectpublic void postAndPropagate()
public void accept(ModelVisitor visitor)
public boolean isCastConstraint()
public IntVar var()
Copyright © 2024. All rights reserved.