private static class ConstraintFunctions.TransitiveConstraintFinder
extends net.ssehub.easy.varModel.model.filter.ConstraintFinder
implements net.ssehub.easy.varModel.cst.IConstraintTreeVisitor, net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitor
| Modifier and Type | Field and Description |
|---|---|
private boolean |
add |
private java.util.Set<net.ssehub.easy.varModel.model.AbstractVariable> |
candidates |
private java.util.Set<java.lang.Object> |
done |
private net.ssehub.easy.varModel.model.IModelVisitor |
mVisitor |
private java.util.Set<net.ssehub.easy.varModel.model.AbstractVariable> |
scheduled |
private net.ssehub.easy.varModel.model.Project |
scope |
private net.ssehub.easy.varModel.model.Project |
target |
private java.util.Set<net.ssehub.easy.varModel.model.AbstractVariable> |
variables |
| Constructor and Description |
|---|
TransitiveConstraintFinder(net.ssehub.easy.varModel.model.Project scope,
net.ssehub.easy.varModel.model.Project target)
Creates a finder with search scope and target project.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addToVariables(net.ssehub.easy.varModel.model.AbstractVariable var)
Adds a variable to
variables. |
private void |
handle(net.ssehub.easy.varModel.model.AbstractVariable variable)
Handles the occurrence of a variable.
|
protected void |
startAccept(net.ssehub.easy.varModel.model.Project project) |
void |
visit(net.ssehub.easy.varModel.model.AbstractVariable var)
Call for the top-level variable to be visited.
|
private void |
visit(net.ssehub.easy.varModel.model.datatypes.IDatatype type)
Internal method to start visiting a datatype.
|
void |
visitAnnotationVariable(net.ssehub.easy.varModel.cst.AttributeVariable variable) |
void |
visitAnyType(net.ssehub.easy.varModel.model.datatypes.AnyType datatype) |
void |
visitAttributeAssignment(net.ssehub.easy.varModel.model.AttributeAssignment assignment) |
void |
visitBlockExpression(net.ssehub.easy.varModel.cst.BlockExpression block) |
void |
visitBooleanType(net.ssehub.easy.varModel.model.datatypes.BooleanType type) |
void |
visitComment(net.ssehub.easy.varModel.cst.Comment comment) |
void |
visitCompoundAccess(net.ssehub.easy.varModel.cst.CompoundAccess access) |
void |
visitCompoundInitializer(net.ssehub.easy.varModel.cst.CompoundInitializer initializer) |
void |
visitCompoundType(net.ssehub.easy.varModel.model.datatypes.Compound compound) |
void |
visitConstantValue(net.ssehub.easy.varModel.cst.ConstantValue value) |
void |
visitConstraint(net.ssehub.easy.varModel.model.Constraint constraint) |
void |
visitConstraintType(net.ssehub.easy.varModel.model.datatypes.ConstraintType type) |
void |
visitContainerInitializer(net.ssehub.easy.varModel.cst.ContainerInitializer initializer) |
void |
visitContainerOperationCall(net.ssehub.easy.varModel.cst.ContainerOperationCall call) |
void |
visitDatatype(net.ssehub.easy.varModel.model.datatypes.IDatatype datatype) |
void |
visitDecisionVariableDeclaration(net.ssehub.easy.varModel.model.DecisionVariableDeclaration decl) |
void |
visitDeferInitExpression(net.ssehub.easy.varModel.cst.DeferInitExpression expression) |
void |
visitDerivedType(net.ssehub.easy.varModel.model.datatypes.DerivedDatatype datatype) |
void |
visitEnumType(net.ssehub.easy.varModel.model.datatypes.Enum enumType) |
void |
visitIfThen(net.ssehub.easy.varModel.cst.IfThen ifThen) |
void |
visitIntegerType(net.ssehub.easy.varModel.model.datatypes.IntegerType type) |
void |
visitLet(net.ssehub.easy.varModel.cst.Let let) |
void |
visitMetaType(net.ssehub.easy.varModel.model.datatypes.MetaType datatype) |
void |
visitMultiAndExpression(net.ssehub.easy.varModel.cst.MultiAndExpression expression) |
void |
visitOclFeatureCall(net.ssehub.easy.varModel.cst.OCLFeatureCall call) |
void |
visitOrderedEnumType(net.ssehub.easy.varModel.model.datatypes.OrderedEnum enumType) |
void |
visitParenthesis(net.ssehub.easy.varModel.cst.Parenthesis parenthesis) |
void |
visitProject(net.ssehub.easy.varModel.model.Project project) |
void |
visitRealType(net.ssehub.easy.varModel.model.datatypes.RealType type) |
void |
visitSelf(net.ssehub.easy.varModel.cst.Self self) |
void |
visitSequence(net.ssehub.easy.varModel.model.datatypes.Sequence sequence) |
void |
visitSet(net.ssehub.easy.varModel.model.datatypes.Set set) |
void |
visitStringType(net.ssehub.easy.varModel.model.datatypes.StringType type) |
void |
visitUnresolvedExpression(net.ssehub.easy.varModel.cst.UnresolvedExpression expression) |
void |
visitVariable(net.ssehub.easy.varModel.cst.Variable variable) |
void |
visitVersionType(net.ssehub.easy.varModel.model.datatypes.VersionType type) |
getAttributeAssignments, getConstraints, getEvalConstraints, visitAttribute, visitComment, visitCompound, visitCompoundAccessStatement, visitDerivedDatatype, visitEnum, visitEnumLiteral, visitFreezeBlock, visitOperationDefinition, visitOrderedEnum, visitPartialEvaluationBlock, visitProjectImport, visitProjectInterface, visitReferenceprivate boolean add
private java.util.Set<net.ssehub.easy.varModel.model.AbstractVariable> variables
private java.util.Set<net.ssehub.easy.varModel.model.AbstractVariable> scheduled
private java.util.Set<net.ssehub.easy.varModel.model.AbstractVariable> candidates
private java.util.Set<java.lang.Object> done
private net.ssehub.easy.varModel.model.Project scope
private net.ssehub.easy.varModel.model.Project target
private net.ssehub.easy.varModel.model.IModelVisitor mVisitor
public TransitiveConstraintFinder(net.ssehub.easy.varModel.model.Project scope,
net.ssehub.easy.varModel.model.Project target)
scope - the scopetarget - the target projectprotected void startAccept(net.ssehub.easy.varModel.model.Project project)
startAccept in class net.ssehub.easy.varModel.model.filter.ConstraintFinderpublic void visit(net.ssehub.easy.varModel.model.AbstractVariable var)
var - the variableprivate void visit(net.ssehub.easy.varModel.model.datatypes.IDatatype type)
type - the type to be visitedprivate void addToVariables(net.ssehub.easy.varModel.model.AbstractVariable var)
variables.var - the variablepublic void visitDecisionVariableDeclaration(net.ssehub.easy.varModel.model.DecisionVariableDeclaration decl)
visitDecisionVariableDeclaration in interface net.ssehub.easy.varModel.model.IModelVisitorvisitDecisionVariableDeclaration in class net.ssehub.easy.varModel.model.filter.ConstraintFinderpublic void visitConstraint(net.ssehub.easy.varModel.model.Constraint constraint)
visitConstraint in interface net.ssehub.easy.varModel.model.IModelVisitorvisitConstraint in class net.ssehub.easy.varModel.model.filter.ConstraintFinderpublic void visitProject(net.ssehub.easy.varModel.model.Project project)
visitProject in interface net.ssehub.easy.varModel.model.IModelVisitorvisitProject in class net.ssehub.easy.varModel.model.filter.ConstraintFinderpublic void visitConstantValue(net.ssehub.easy.varModel.cst.ConstantValue value)
visitConstantValue in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorprivate void handle(net.ssehub.easy.varModel.model.AbstractVariable variable)
variable - the variablepublic void visitVariable(net.ssehub.easy.varModel.cst.Variable variable)
visitVariable in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitAnnotationVariable(net.ssehub.easy.varModel.cst.AttributeVariable variable)
visitAnnotationVariable in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitParenthesis(net.ssehub.easy.varModel.cst.Parenthesis parenthesis)
visitParenthesis in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitComment(net.ssehub.easy.varModel.cst.Comment comment)
visitComment in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitOclFeatureCall(net.ssehub.easy.varModel.cst.OCLFeatureCall call)
visitOclFeatureCall in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitLet(net.ssehub.easy.varModel.cst.Let let)
visitLet in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitIfThen(net.ssehub.easy.varModel.cst.IfThen ifThen)
visitIfThen in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitContainerOperationCall(net.ssehub.easy.varModel.cst.ContainerOperationCall call)
visitContainerOperationCall in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitCompoundAccess(net.ssehub.easy.varModel.cst.CompoundAccess access)
visitCompoundAccess in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitUnresolvedExpression(net.ssehub.easy.varModel.cst.UnresolvedExpression expression)
visitUnresolvedExpression in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitCompoundInitializer(net.ssehub.easy.varModel.cst.CompoundInitializer initializer)
visitCompoundInitializer in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitContainerInitializer(net.ssehub.easy.varModel.cst.ContainerInitializer initializer)
visitContainerInitializer in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitSelf(net.ssehub.easy.varModel.cst.Self self)
visitSelf in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitBlockExpression(net.ssehub.easy.varModel.cst.BlockExpression block)
visitBlockExpression in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitDeferInitExpression(net.ssehub.easy.varModel.cst.DeferInitExpression expression)
visitDeferInitExpression in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitMultiAndExpression(net.ssehub.easy.varModel.cst.MultiAndExpression expression)
visitMultiAndExpression in interface net.ssehub.easy.varModel.cst.IConstraintTreeVisitorpublic void visitDatatype(net.ssehub.easy.varModel.model.datatypes.IDatatype datatype)
visitDatatype in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitAnyType(net.ssehub.easy.varModel.model.datatypes.AnyType datatype)
visitAnyType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitMetaType(net.ssehub.easy.varModel.model.datatypes.MetaType datatype)
visitMetaType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitDerivedType(net.ssehub.easy.varModel.model.datatypes.DerivedDatatype datatype)
visitDerivedType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitBooleanType(net.ssehub.easy.varModel.model.datatypes.BooleanType type)
visitBooleanType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitStringType(net.ssehub.easy.varModel.model.datatypes.StringType type)
visitStringType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitConstraintType(net.ssehub.easy.varModel.model.datatypes.ConstraintType type)
visitConstraintType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitIntegerType(net.ssehub.easy.varModel.model.datatypes.IntegerType type)
visitIntegerType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitVersionType(net.ssehub.easy.varModel.model.datatypes.VersionType type)
visitVersionType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitRealType(net.ssehub.easy.varModel.model.datatypes.RealType type)
visitRealType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitCompoundType(net.ssehub.easy.varModel.model.datatypes.Compound compound)
visitCompoundType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitAttributeAssignment(net.ssehub.easy.varModel.model.AttributeAssignment assignment)
visitAttributeAssignment in interface net.ssehub.easy.varModel.model.IModelVisitorvisitAttributeAssignment in class net.ssehub.easy.varModel.model.filter.ConstraintFinderpublic void visitSet(net.ssehub.easy.varModel.model.datatypes.Set set)
visitSet in interface net.ssehub.easy.varModel.model.datatypes.ICustomDatatypeVisitorvisitSet in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorvisitSet in class net.ssehub.easy.varModel.model.filter.ConstraintFinderpublic void visitSequence(net.ssehub.easy.varModel.model.datatypes.Sequence sequence)
visitSequence in interface net.ssehub.easy.varModel.model.datatypes.ICustomDatatypeVisitorvisitSequence in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorvisitSequence in class net.ssehub.easy.varModel.model.filter.ConstraintFinderpublic void visitEnumType(net.ssehub.easy.varModel.model.datatypes.Enum enumType)
visitEnumType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorpublic void visitOrderedEnumType(net.ssehub.easy.varModel.model.datatypes.OrderedEnum enumType)
visitOrderedEnumType in interface net.ssehub.easy.varModel.model.datatypes.IDatatypeVisitorCopyright © 2009 - 2018 SSE. All Rights Reserved.