Class MeasuringTypeEquivalenceHelper

java.lang.Object
org.palladiosimulator.recorderframework.edp2.MeasuringTypeEquivalenceHelper

public class MeasuringTypeEquivalenceHelper extends Object
A Helper class to check whether two MeasuringTypes are equivalent, that is they describe the same type of measure, that is the same metric and the same place in the system to measure. This check cannot just be done with MeasuringType.equals(..) as two MeasuringTypes might have a different ids even if they are equivalent, because the ids in SimuCom are created randomly during independent simulation runs.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isEquivalent(org.palladiosimulator.edp2.models.ExperimentData.MeasuringType measuringType1, org.palladiosimulator.edp2.models.ExperimentData.MeasuringType measuringType2)
    Helper method to check equivalence of two MeasuringType.
    static boolean
    isEquivalent(org.palladiosimulator.edp2.models.ExperimentData.MeasuringType measuringType, org.palladiosimulator.metricspec.MetricDescription metricDescription, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
    Helper method to check equivalence of two measuring types (i.e.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MeasuringTypeEquivalenceHelper

      public MeasuringTypeEquivalenceHelper()
  • Method Details

    • isEquivalent

      public static boolean isEquivalent(org.palladiosimulator.edp2.models.ExperimentData.MeasuringType measuringType1, org.palladiosimulator.edp2.models.ExperimentData.MeasuringType measuringType2)
      Helper method to check equivalence of two MeasuringType. See class documentation.
      Parameters:
      measuringType1 - One of the MeasuringType to compare
      measuringType2 - The other MeasuringType to compare
      Returns:
      true if equivalent.
    • isEquivalent

      public static boolean isEquivalent(org.palladiosimulator.edp2.models.ExperimentData.MeasuringType measuringType, org.palladiosimulator.metricspec.MetricDescription metricDescription, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
      Helper method to check equivalence of two measuring types (i.e. place in system and metric) if the second measuring type is not yet represented by a MeasuringType object.
      Parameters:
      measuringType - MeasuringType
      metricDescription - MetricDescription of the second MeasuringType to compare to
      measuringPoint - MeasuringPoint of the second MeasuringType to compare to
      Returns:
      true if equivalent.