Class DSLConfigurationVisitor


public class DSLConfigurationVisitor extends MetricDSLSwitch<IMetric>
  • Constructor Details

    • DSLConfigurationVisitor

      public DSLConfigurationVisitor(Map<MetricID,IMetric> registeredMetrics)
      Parameters:
      registeredMetrics -
  • Method Details

    • caseInternalMetric

      public IMetric caseInternalMetric(InternalMetric object)
      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 class MetricDSLSwitch<IMetric>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Internal Metric'.
      See Also:
    • caseRatioMetric

      public IMetric caseRatioMetric(RatioMetric object)
      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 class MetricDSLSwitch<IMetric>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Ratio Metric'.
      See Also:
    • caseStepwiseMetric

      public IMetric caseStepwiseMetric(StepwiseMetric object)
      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 class MetricDSLSwitch<IMetric>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Stepwise Metric'.
      See Also:
    • caseWeightedMetric

      public IMetric caseWeightedMetric(WeightedMetric object)
      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 class MetricDSLSwitch<IMetric>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Weighted Metric'.
      See Also:
    • caseExternalMetric

      public IMetric caseExternalMetric(ExternalMetric object)
      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 class MetricDSLSwitch<IMetric>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'External Metric'.
      See Also: