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
public class DefaultConfigurationStatisticsVisitor extends AbstractConfigurationStatisticsVisitor
A default implementation of theAbstractConfigurationStatisticsVisitorwith 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
Constructors Modifier Constructor Description DefaultConfigurationStatisticsVisitor()Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
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 Detail
-
specialTreatment
protected void specialTreatment(IDecisionVariable variable)
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
protected void specialTreatment(Project mainProject)
Description copied from class:AbstractConfigurationStatisticsVisitorOptional hook to realize additional statistics for the underlying IVML project.- Specified by:
specialTreatmentin classAbstractConfigurationStatisticsVisitor- Parameters:
mainProject-Configuration.getProject().
-
-