|
CIDER Toolkit Version 0.1.0-beta |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
A constraint expression is a component of a Constraint.
This interface defines how a constraint expression is manipulated. Classes that
implement this interface should also define a no-argument constructor
and must be Serializable.
| Method Summary | |
double |
evaluate()
Evaluates this expression using the solved values of the constraint variables, and returns the resulting value. |
java.util.Set |
getConstraintVariables()
Returns a set containing all the constraint variables used by this constraint expression. |
void |
initialize(java.lang.String expression,
ConstraintVariable[] variables)
Initializes the constraint expression from a string. |
| Method Detail |
public void initialize(java.lang.String expression,
ConstraintVariable[] variables)
throws CannotProcessConstraintException,
java.lang.ArrayIndexOutOfBoundsException,
java.lang.NumberFormatException
expression - A string that defines the constraint expression (this string needs to be parsed).variables - An array of constraint variables that the expression string refers to.
CannotProcessConstraintException - If string cannot be parsed.
java.lang.ArrayIndexOutOfBoundsException - If an illegal access of the constraint variable array is attempted.
java.lang.NumberFormatException - If an illegal number format is found in the string being parsed.public double evaluate()
public java.util.Set getConstraintVariables()
|
CIDER Toolkit Version 0.1.0-beta |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||