Class ConstraintOperations
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.ConstraintOperations
Implements constraint operations. Actually, constraint euqlas and
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static EvaluationAccessorhandleConstraintAssignment(EvaluationAccessor operand, ConstraintSyntaxTree cst) Handles a constraint assignment, i.e., assigns thecst.(package private) static EvaluationAccessorhandleConstraintEquals(EvaluationAccessor operand, ConstraintSyntaxTree cst, boolean negate) Handles a constraint equality with propagation, i.e., assigns thecst.static final voidregister()Registers the defined operations.
-
Constructor Details
-
ConstraintOperations
private ConstraintOperations()Prevents external creation.
-
-
Method Details
-
handleConstraintAssignment
static EvaluationAccessor handleConstraintAssignment(EvaluationAccessor operand, ConstraintSyntaxTree cst) Handles a constraint assignment, i.e., assigns thecst.- Parameters:
operand- the operand to assign the constraint tocst- the value as constraint syntax tree- Returns:
- the expression return result
-
handleConstraintEquals
static EvaluationAccessor handleConstraintEquals(EvaluationAccessor operand, ConstraintSyntaxTree cst, boolean negate) Handles a constraint equality with propagation, i.e., assigns thecst.- Parameters:
operand- the operand to assign the constraint tocst- the value as constraint syntax treenegate- negate the result (equals or not-equals)- Returns:
- the expression return result
-
register
public static final void register()Registers the defined operations.
-