Class QMModelStatistics
java.lang.Object
net.ssehub.easy.varModel.model.AbstractProjectVisitor
eu.qualimaster.easy.extension.modelop.QMModelStatistics
- All Implemented Interfaces:
net.ssehub.easy.varModel.model.datatypes.ICustomDatatypeVisitor,net.ssehub.easy.varModel.model.IModelVisitor
class QMModelStatistics
extends net.ssehub.easy.varModel.model.AbstractProjectVisitor
Part of the
QMConfigStatisticsVisitor to collect static information of the QualiMaster (Meta-) Model.- Author:
- El-Sharkawy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intprivate intprivate intprivate intprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQMModelStatistics(net.ssehub.easy.varModel.model.Project originProject) Sole constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) intReturns the number of constraints nested inside projects (not part of compounds).(package private) intReturns the number of annotations nested in compounds.(package private) intReturns the number of declarations nested in compounds.(package private) intReturns the number of user defined operations.(package private) intReturns the number of annotations nested inside the project (not part of compounds).(package private) intReturns the number of declarations nested inside the project (not part of compounds).voidvisitAttribute(net.ssehub.easy.varModel.model.Attribute attribute) voidvisitAttributeAssignment(net.ssehub.easy.varModel.model.AttributeAssignment assignment) voidvisitComment(net.ssehub.easy.varModel.model.Comment comment) voidvisitCompound(net.ssehub.easy.varModel.model.datatypes.Compound compound) voidvisitCompoundAccessStatement(net.ssehub.easy.varModel.model.CompoundAccessStatement access) voidvisitConstraint(net.ssehub.easy.varModel.model.Constraint constraint) voidvisitDecisionVariableDeclaration(net.ssehub.easy.varModel.model.DecisionVariableDeclaration decl) voidvisitDerivedDatatype(net.ssehub.easy.varModel.model.datatypes.DerivedDatatype datatype) voidvisitEnum(net.ssehub.easy.varModel.model.datatypes.Enum eenum) voidvisitEnumLiteral(net.ssehub.easy.varModel.model.datatypes.EnumLiteral literal) voidvisitFreezeBlock(net.ssehub.easy.varModel.model.FreezeBlock freeze) voidvisitOperationDefinition(net.ssehub.easy.varModel.model.OperationDefinition opdef) voidvisitOrderedEnum(net.ssehub.easy.varModel.model.datatypes.OrderedEnum eenum) voidvisitPartialEvaluationBlock(net.ssehub.easy.varModel.model.PartialEvaluationBlock block) voidvisitProjectInterface(net.ssehub.easy.varModel.model.ProjectInterface iface) voidvisitReference(net.ssehub.easy.varModel.model.datatypes.Reference reference) voidvisitSequence(net.ssehub.easy.varModel.model.datatypes.Sequence sequence) voidvisitSet(net.ssehub.easy.varModel.model.datatypes.Set set) Methods inherited from class net.ssehub.easy.varModel.model.AbstractProjectVisitor
clear, getFilterType, getStartingProject, visitProject, visitProjectImport
-
Field Details
-
visitingCompound
private boolean visitingCompound -
nConstraints
private int nConstraints -
nOperations
private int nOperations -
nTopLevelDeclarations
private int nTopLevelDeclarations -
nNestedDeclarations
private int nNestedDeclarations -
nTopLevelAnnotations
private int nTopLevelAnnotations -
nNestedAnnotations
private int nNestedAnnotations
-
-
Constructor Details
-
QMModelStatistics
protected QMModelStatistics(net.ssehub.easy.varModel.model.Project originProject) Sole constructor.- Parameters:
originProject- The project where the visiting shall start
-
-
Method Details
-
noOfConstraints
int noOfConstraints()Returns the number of constraints nested inside projects (not part of compounds).- Returns:
- Will be ≥ 0.
-
noOfOperations
int noOfOperations()Returns the number of user defined operations.- Returns:
- Will be ≥ 0.
-
noOfToplevelDeclarations
int noOfToplevelDeclarations()Returns the number of declarations nested inside the project (not part of compounds).- Returns:
- Will be ≥ 0.
-
noOfNestedDeclarations
int noOfNestedDeclarations()Returns the number of declarations nested in compounds.- Returns:
- Will be ≥ 0.
-
noOfNestedAnnotations
int noOfNestedAnnotations()Returns the number of annotations nested in compounds.- Returns:
- Will be ≥ 0.
-
noOfToplevelAnnotations
int noOfToplevelAnnotations()Returns the number of annotations nested inside the project (not part of compounds).- Returns:
- Will be ≥ 0.
-
visitDecisionVariableDeclaration
public void visitDecisionVariableDeclaration(net.ssehub.easy.varModel.model.DecisionVariableDeclaration decl) -
visitAttribute
public void visitAttribute(net.ssehub.easy.varModel.model.Attribute attribute) -
visitConstraint
public void visitConstraint(net.ssehub.easy.varModel.model.Constraint constraint) -
visitFreezeBlock
public void visitFreezeBlock(net.ssehub.easy.varModel.model.FreezeBlock freeze) -
visitOperationDefinition
public void visitOperationDefinition(net.ssehub.easy.varModel.model.OperationDefinition opdef) -
visitPartialEvaluationBlock
public void visitPartialEvaluationBlock(net.ssehub.easy.varModel.model.PartialEvaluationBlock block) -
visitProjectInterface
public void visitProjectInterface(net.ssehub.easy.varModel.model.ProjectInterface iface) -
visitComment
public void visitComment(net.ssehub.easy.varModel.model.Comment comment) -
visitAttributeAssignment
public void visitAttributeAssignment(net.ssehub.easy.varModel.model.AttributeAssignment assignment) -
visitCompoundAccessStatement
public void visitCompoundAccessStatement(net.ssehub.easy.varModel.model.CompoundAccessStatement access) -
visitEnum
public void visitEnum(net.ssehub.easy.varModel.model.datatypes.Enum eenum) -
visitOrderedEnum
public void visitOrderedEnum(net.ssehub.easy.varModel.model.datatypes.OrderedEnum eenum) -
visitCompound
public void visitCompound(net.ssehub.easy.varModel.model.datatypes.Compound compound) -
visitDerivedDatatype
public void visitDerivedDatatype(net.ssehub.easy.varModel.model.datatypes.DerivedDatatype datatype) -
visitEnumLiteral
public void visitEnumLiteral(net.ssehub.easy.varModel.model.datatypes.EnumLiteral literal) -
visitReference
public void visitReference(net.ssehub.easy.varModel.model.datatypes.Reference reference) -
visitSequence
public void visitSequence(net.ssehub.easy.varModel.model.datatypes.Sequence sequence) -
visitSet
public void visitSet(net.ssehub.easy.varModel.model.datatypes.Set set)
-