public class EvalVisitor
extends net.ssehub.easy.varModel.cstEvaluation.EvaluationVisitor
EvaluationVisitor for using it in the Reasoning plugin.| Modifier and Type | Field and Description |
|---|---|
private ScopeAssignments |
scopeAssignments |
| Constructor and Description |
|---|
EvalVisitor()
Creates an evaluation visitor.
|
EvalVisitor(net.ssehub.easy.varModel.confModel.IConfiguration config,
net.ssehub.easy.varModel.confModel.IAssignmentState assignmentState,
boolean assignmentsOnly,
net.ssehub.easy.varModel.cstEvaluation.IValueChangeListener listener)
Constructor for initializing superclass.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected net.ssehub.easy.varModel.confModel.IAssignmentState |
getTargetState(net.ssehub.easy.varModel.confModel.IDecisionVariable var) |
private boolean |
isAssignable(net.ssehub.easy.varModel.confModel.IDecisionVariable var,
net.ssehub.easy.varModel.confModel.IDecisionVariable compound)
Method for determining if variable is valid for value assignment.
|
void |
setScopeAssignments(ScopeAssignments scopeAssignments)
Method for setting ScopeAssignments register to check if variable was already assigned in this scope.
|
private boolean |
wasAssignedInThisScope(net.ssehub.easy.varModel.confModel.IDecisionVariable var,
net.ssehub.easy.varModel.confModel.IDecisionVariable compound)
Method for determining if variable was already aasigned in this scope.
|
clearIntermediary, clearResult, constraintFailed, constraintFailed, constraintFulfilled, constraintFulfilled, constraintIsAWarning, constraintUndefined, constraintUndefined, getFailedExpression, getIteratorEvaluator, getMessage, getMessageCount, getOperationEvaluator, getResult, getResultAccessor, getResultVariable, init, setAssignmentState, setDispatchScope, setResolutionListener, setResultAcessor, setSelfValue, setValueChangeListener, visit, visitAnnotationVariable, visitBlockExpression, visitComment, visitCompoundAccess, visitCompoundInitializer, visitConstantValue, visitContainerInitializer, visitContainerOperationCall, visitIfThen, visitLet, visitMultiAndExpression, visitOclFeatureCall, visitParenthesis, visitSelf, visitUnresolvedExpression, visitVariableprivate ScopeAssignments scopeAssignments
public EvalVisitor()
public EvalVisitor(net.ssehub.easy.varModel.confModel.IConfiguration config,
net.ssehub.easy.varModel.confModel.IAssignmentState assignmentState,
boolean assignmentsOnly,
net.ssehub.easy.varModel.cstEvaluation.IValueChangeListener listener)
config - the configuration to take already evaluated values fromassignmentState - the state for the assignments (may be null if no assignment shall take place)assignmentsOnly - if true process only assignments, else process all constraintslistener - listener a listener to notify some external mechanism about a changed variablepublic void clear()
clear in class net.ssehub.easy.varModel.cstEvaluation.EvaluationVisitorpublic void setScopeAssignments(ScopeAssignments scopeAssignments)
scopeAssignments - register.protected net.ssehub.easy.varModel.confModel.IAssignmentState getTargetState(net.ssehub.easy.varModel.confModel.IDecisionVariable var)
getTargetState in class net.ssehub.easy.varModel.cstEvaluation.EvaluationVisitorprivate boolean isAssignable(net.ssehub.easy.varModel.confModel.IDecisionVariable var,
net.ssehub.easy.varModel.confModel.IDecisionVariable compound)
var - Variable to be checked.compound - Parent compound (might be null).private boolean wasAssignedInThisScope(net.ssehub.easy.varModel.confModel.IDecisionVariable var,
net.ssehub.easy.varModel.confModel.IDecisionVariable compound)
var - Variable to be checked.compound - Parent compound (might be null).Copyright © 2009 - 2018 SSE. All Rights Reserved.