Constraint

Defines the base class for all constraint classes.

Constructor

VmSpec(GridObjectInfo): Constructs a default VmSpec.

Methods

Detail:

getFact()

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

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 or else it returns null.

setFact(String fact)

Sets the fact ID 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)

Sets 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