AndConstraint()

Representation of the And Constraint. Perform a logical ANDing of all child constraints. If this constraint contains no children, no operation is performed. Constraints are added to this constraint using add().

Constructor

AndConstraint(GridObjectInfo): Constructs a default AndConstraint.

Methods

Inherited from ContainerConstraint class:

add(Constraint constraint)

Adds a constraint as a child of this constraint.

Parameters: constraint - Child constraint to add.

Inherited from Constraint class:

getFact()

Retrieves the fact id of the left side of the operation.

getFactValue()

If set with setFactValue(), retrieves the fact name whose value is used on the right side of the operation, otherwise this will return None.

getReason()

Retrieves the reason string that contains the human readable explanation that can be displayed as an error when a constraint evaluates to False.

getValue()

If set as a value, retrieves the value of the right side of the operation, otherwise it returns null.

setFact(String fact)

Sets the fact identification string for the left side of the operation.

setFactValue(String factvalue)

Sets the fact name whose value is used in the right side of the operation and, in doing so, negates any previous setValue() call.

setReason(String reason)

Retrieves the reason string that contains the human readable explanation that can be displayed as an error when a constraint evaluates to false.

setValue(Object value)

Sets the value of the right side of the operation and, in doing so, negates any previous setFactValue() call.

See Also