Class MonitorRepositoryUtil

java.lang.Object
org.palladiosimulator.simulizar.utils.MonitorRepositoryUtil

public final class MonitorRepositoryUtil extends Object
Util methods for the monitoring model
  • Constructor Details

    • MonitorRepositoryUtil

      public MonitorRepositoryUtil()
  • Method Details

    • isMonitored

      public static org.palladiosimulator.monitorrepository.MeasurementSpecification isMonitored(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepositoryModel, EObject element, org.palladiosimulator.metricspec.MetricDescription metricDescription)
      Method checks if given element should be monitored with given performance metric. If yes, it will return the corresponding MeasurementSpecification, otherwise null.
      Parameters:
      monitorRepositoryModel - the monitoring model
      element - the element to be checked.
      performanceMetric - the performance metric.
      Returns:
      the MeasurementSpecification, if element should be monitored according to given performance metric, otherwise null
    • getMeasurementIdentifier

      public static String getMeasurementIdentifier(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
    • getMonitoredElement

      public static EObject getMonitoredElement(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp)
      Deprecated.
      Method returns the monitored element EObject for a measuring point.
      Parameters:
      mp - the measuring point for which the monitored element shall be returned
      Returns:
      the monitored element
    • getActiveMonitorsForElement

      public static List<org.palladiosimulator.monitorrepository.Monitor> getActiveMonitorsForElement(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepository, EObject element)
    • getMeasurementSpecificationsForElement

      public static List<org.palladiosimulator.monitorrepository.MeasurementSpecification> getMeasurementSpecificationsForElement(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepository, EObject element)
    • elementConformingToMeasuringPoint

      public static boolean elementConformingToMeasuringPoint(EObject element, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)