Package org.somox.metrics.dslvisitor
Class DSLConfigurationVisitor
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.somox.metrics.dsl.metricDSL.util.MetricDSLSwitch<IMetric>
org.somox.metrics.dslvisitor.DSLConfigurationVisitor
-
Field Summary
Fields inherited from class org.somox.metrics.dsl.metricDSL.util.MetricDSLSwitch
modelPackage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseExternalMetric
(ExternalMetric object) Returns the result of interpreting the object as an instance of 'External Metric'.caseInternalMetric
(InternalMetric object) Returns the result of interpreting the object as an instance of 'Internal Metric'.caseRatioMetric
(RatioMetric object) Returns the result of interpreting the object as an instance of 'Ratio Metric'.caseStepwiseMetric
(StepwiseMetric object) Returns the result of interpreting the object as an instance of 'Stepwise Metric'.caseWeightedMetric
(WeightedMetric object) Returns the result of interpreting the object as an instance of 'Weighted Metric'.Methods inherited from class org.somox.metrics.dsl.metricDSL.util.MetricDSLSwitch
caseBoundAndWeight, caseConstant, caseMetric, caseMetricAndWeight, caseMetricDefinition, caseMetricModel, caseNumber, caseParameter, defaultCase, doSwitch, isSwitchFor
-
Constructor Details
-
DSLConfigurationVisitor
- Parameters:
registeredMetrics
-
-
-
Method Details
-
caseInternalMetric
Description copied from class:MetricDSLSwitch
Returns the result of interpreting the object as an instance of 'Internal Metric'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseInternalMetric
in classMetricDSLSwitch<IMetric>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Internal Metric'.
- See Also:
-
caseRatioMetric
Description copied from class:MetricDSLSwitch
Returns the result of interpreting the object as an instance of 'Ratio Metric'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseRatioMetric
in classMetricDSLSwitch<IMetric>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ratio Metric'.
- See Also:
-
caseStepwiseMetric
Description copied from class:MetricDSLSwitch
Returns the result of interpreting the object as an instance of 'Stepwise Metric'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseStepwiseMetric
in classMetricDSLSwitch<IMetric>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Stepwise Metric'.
- See Also:
-
caseWeightedMetric
Description copied from class:MetricDSLSwitch
Returns the result of interpreting the object as an instance of 'Weighted Metric'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseWeightedMetric
in classMetricDSLSwitch<IMetric>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Weighted Metric'.
- See Also:
-
caseExternalMetric
Description copied from class:MetricDSLSwitch
Returns the result of interpreting the object as an instance of 'External Metric'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseExternalMetric
in classMetricDSLSwitch<IMetric>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'External Metric'.
- See Also:
-