Class ModelStatistics
java.lang.Object
net.ssehub.easy.varModel.confModel.AbstractConfigurationStatisticsVisitor.ConfigStatistics
eu.qualimaster.easy.extension.modelop.ModelStatistics
public class ModelStatistics
extends net.ssehub.easy.varModel.confModel.AbstractConfigurationStatisticsVisitor.ConfigStatistics
Statistical information of the QualiMaster (Meta-) Model.
- Author:
- El-Sharkawy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidincInstance(String typeName) Counts a new variable instance.intReturns the number of constraints defined on project level.intReturns the number of data management instances.intReturns the number of family instances.intReturns the number of family element instances.intReturns the number of flow instances.intReturns the number of general purpose machine instances.intReturns the number of hardware algorithm instances.intReturns the number of annotations nested in compounds.intReturns the number of declarations nested in compounds.intReturns the number of user defined operations.intReturns the number of pipeline (without sub pipelines) instances.intReturns the number of replay sink instances.intReturns the number of sink (without replay sinks) instances.intReturns the number of source instances.intReturns the number of sub pipeline algorithm instances.intReturns the number of subpipeline instances.intReturns the number of software algorithm instances.intReturns the number of annotations nested inside the project (not part of compounds).intReturns the number of declarations nested inside the project (not part of compounds).(package private) voidsetNestedAnnotations(int nNestedAnnotations) Sets the number of static annotations (nested in Compounds).(package private) voidsetNestedDeclarations(int nNestedDeclarations) Sets the number of static declarations (nested in Compounds).(package private) voidsetOperations(int nOperations) Sets the number of user defined operations.(package private) voidsetStaticConstraints(int nConstraints) Sets the number of static constraints (nested directly inProjects).(package private) voidsetTopLevelAnnotations(int nTopLevelAnnotations) Sets the number of static annotations (nested directly inProjects).(package private) voidsetTopLevelDeclarations(int nTopLevelDeclarations) Sets the number of static declarations (nested directly inProjects).Methods inherited from class net.ssehub.easy.varModel.confModel.AbstractConfigurationStatisticsVisitor.ConfigStatistics
noOfAnnotations, noOfConstraintInstances, noOfConstraintVariables, noOfConstraintVariablesNoContainer, noOfNormalVariables, noOfNormalVariablesNoContainer, noOfToplevelVariables, noOfVariables, noOfVariablesWithoutContainer
-
Field Details
-
nSWAlgorithms
private int nSWAlgorithms -
nHWAlgorithms
private int nHWAlgorithms -
nSPAlgorithms
private int nSPAlgorithms -
nFamilies
private int nFamilies -
nGeneralMachines
private int nGeneralMachines -
nPipelines
private int nPipelines -
nSubPipelines
private int nSubPipelines -
nSources
private int nSources -
nFamilyElements
private int nFamilyElements -
nDMElements
private int nDMElements -
nReplaySinks
private int nReplaySinks -
nSinks
private int nSinks -
nFlows
private int nFlows -
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
-
ModelStatistics
ModelStatistics()Constructor shall only be called by theQMConfigStatisticsVisitor.
-
-
Method Details
-
incInstance
Counts a new variable instance.- Parameters:
typeName- The kind of model element to count, e.g., ALgorithm or Family. Must not benull.
-
setStaticConstraints
void setStaticConstraints(int nConstraints) Sets the number of static constraints (nested directly inProjects).- Parameters:
nConstraints- Should be ≥ 0.
-
setOperations
void setOperations(int nOperations) Sets the number of user defined operations.- Parameters:
nOperations- Should be ≥ 0.
-
setTopLevelDeclarations
void setTopLevelDeclarations(int nTopLevelDeclarations) Sets the number of static declarations (nested directly inProjects).- Parameters:
nTopLevelDeclarations- Should be ≥ 0.
-
setNestedDeclarations
void setNestedDeclarations(int nNestedDeclarations) Sets the number of static declarations (nested in Compounds).- Parameters:
nNestedDeclarations- Should be ≥ 0.
-
setTopLevelAnnotations
void setTopLevelAnnotations(int nTopLevelAnnotations) Sets the number of static annotations (nested directly inProjects).- Parameters:
nTopLevelAnnotations- Should be ≥ 0.
-
setNestedAnnotations
void setNestedAnnotations(int nNestedAnnotations) Sets the number of static annotations (nested in Compounds).- Parameters:
nNestedAnnotations- Should be ≥ 0.
-
noOfSWAlgorithms
public int noOfSWAlgorithms()Returns the number of software algorithm instances.- Returns:
- Will be ≥ 0.
-
noOfHWAlgorithms
public int noOfHWAlgorithms()Returns the number of hardware algorithm instances.- Returns:
- Will be ≥ 0.
-
noOfSPAlgorithms
public int noOfSPAlgorithms()Returns the number of sub pipeline algorithm instances.- Returns:
- Will be ≥ 0.
-
noOfFamilies
public int noOfFamilies()Returns the number of family instances.- Returns:
- Will be ≥ 0.
-
noOfGeneralMachines
public int noOfGeneralMachines()Returns the number of general purpose machine instances.- Returns:
- Will be ≥ 0.
-
noOfPipelines
public int noOfPipelines()Returns the number of pipeline (without sub pipelines) instances.- Returns:
- Will be ≥ 0.
-
noOfSubPipelines
public int noOfSubPipelines()Returns the number of subpipeline instances.- Returns:
- Will be ≥ 0.
-
noOfSources
public int noOfSources()Returns the number of source instances.- Returns:
- Will be ≥ 0.
-
noOfFamilyElements
public int noOfFamilyElements()Returns the number of family element instances.- Returns:
- Will be ≥ 0.
-
noOfDataManagementElements
public int noOfDataManagementElements()Returns the number of data management instances.- Returns:
- Will be ≥ 0.
-
noOfReplaySinks
public int noOfReplaySinks()Returns the number of replay sink instances.- Returns:
- Will be ≥ 0.
-
noOfSinks
public int noOfSinks()Returns the number of sink (without replay sinks) instances.- Returns:
- Will be ≥ 0.
-
noOfFlows
public int noOfFlows()Returns the number of flow instances.- Returns:
- Will be ≥ 0.
-
noOfConstraints
public int noOfConstraints()Returns the number of constraints defined on project level.- Returns:
- Will be ≥ 0.
-
noOfOperations
public int noOfOperations()Returns the number of user defined operations.- Returns:
- Will be ≥ 0.
-
noOfToplevelDeclarations
public int noOfToplevelDeclarations()Returns the number of declarations nested inside the project (not part of compounds).- Returns:
- Will be ≥ 0.
-
noOfNestedDeclarations
public int noOfNestedDeclarations()Returns the number of declarations nested in compounds.- Returns:
- Will be ≥ 0.
-
noOfNestedAnnotations
public int noOfNestedAnnotations()Returns the number of annotations nested in compounds.- Returns:
- Will be ≥ 0.
-
noOfToplevelAnnotations
public int noOfToplevelAnnotations()Returns the number of annotations nested inside the project (not part of compounds).- Returns:
- Will be ≥ 0.
-