Class ConstraintOperations
- java.lang.Object
-
- net.ssehub.easy.varModel.cstEvaluation.ConstraintOperations
-
public class ConstraintOperations extends java.lang.ObjectImplements constraint operations. Actually, constraint euqlas and- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Modifier Constructor Description privateConstraintOperations()Prevents external creation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (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 voidregister()Registers the defined operations.
-
-
-
Method Detail
-
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.
-
-