Class DefaultConfigurationStatisticsVisitor
java.lang.Object
net.ssehub.easy.varModel.confModel.AbstractConfigurationVisitor
net.ssehub.easy.varModel.confModel.AbstractConfigurationStatisticsVisitor
net.ssehub.easy.varModel.confModel.DefaultConfigurationStatisticsVisitor
- All Implemented Interfaces:
IConfigurationVisitor
A default implementation of the
AbstractConfigurationStatisticsVisitor with empty implementation
of special treatments.- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ssehub.easy.varModel.confModel.AbstractConfigurationStatisticsVisitor
AbstractConfigurationStatisticsVisitor.ConfigStatistics -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates an instance with a statistics object of typeAbstractConfigurationStatisticsVisitor.ConfigStatistics.protectedDefaultConfigurationStatisticsVisitor(AbstractConfigurationStatisticsVisitor.ConfigStatistics statistics) Creates a statistics visitor with given statistics object (for extension, overriding). -
Method Summary
Modifier and TypeMethodDescriptionprotected voidspecialTreatment(IDecisionVariable variable) Optional hook to realize additional statistics for (nested) variables.protected voidspecialTreatment(Project mainProject) Optional hook to realize additional statistics for the underlying IVML project.Methods inherited from class net.ssehub.easy.varModel.confModel.AbstractConfigurationStatisticsVisitor
getStatistics, processEvalConstraints, visitAssignment, visitConfiguration, visitConstraint, visitDecisionVariable, visitDefaultValue, visitOperationDefinition, visitVariable, visitVariableContainer
-
Constructor Details
-
DefaultConfigurationStatisticsVisitor
public DefaultConfigurationStatisticsVisitor()Creates an instance with a statistics object of typeAbstractConfigurationStatisticsVisitor.ConfigStatistics. -
DefaultConfigurationStatisticsVisitor
protected DefaultConfigurationStatisticsVisitor(AbstractConfigurationStatisticsVisitor.ConfigStatistics statistics) Creates a statistics visitor with given statistics object (for extension, overriding).- Parameters:
statistics- A data object to store the statistical information.
-
-
Method Details
-
specialTreatment
Description copied from class:AbstractConfigurationStatisticsVisitorOptional hook to realize additional statistics for (nested) variables.- Specified by:
specialTreatmentin classAbstractConfigurationStatisticsVisitor- Parameters:
variable- A visited variable. This will be called for all variables, independently if they are m toplevel variables or if they are nested.
-
specialTreatment
Description copied from class:AbstractConfigurationStatisticsVisitorOptional hook to realize additional statistics for the underlying IVML project.- Specified by:
specialTreatmentin classAbstractConfigurationStatisticsVisitor- Parameters:
mainProject-Configuration.getProject().
-