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 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)