public class Constraint extends PropagationBaseObject
swigCMemOwn
Constructor and Description |
---|
Constraint(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ModelVisitor visitor)
Accepts the given visitor.
|
void |
delete() |
protected void |
finalize() |
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.
|
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, unfreezeQueue
getCPtr, swigRelease
public static long getCPtr(Constraint obj)
public static long swigRelease(Constraint obj)
protected void finalize()
finalize
in class PropagationBaseObject
public void delete()
delete
in class PropagationBaseObject
public void post()
public void initialPropagate()
public java.lang.String toString()
toString
in class PropagationBaseObject
public void postAndPropagate()
public void accept(ModelVisitor visitor)
public boolean isCastConstraint()
public IntVar var()
Copyright © 2025. All rights reserved.