Class UnselectedMetricSpecificationsProvider

java.lang.Object
org.palladiosimulator.measurementsui.dataprovider.UnselectedMetricSpecificationsProvider

public class UnselectedMetricSpecificationsProvider extends Object
This class creates and manages the Monitors used for the 3rd Wizard Page
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createMeasurementSpecificationsForEveryMetricDescription(EList<org.palladiosimulator.metricspec.MetricDescription> nonMatchingMetricDesciptions, org.palladiosimulator.monitorrepository.MonitorRepositoryFactory monFactory, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList)
    Create a MSpec for every Metric Description
    void
    createMonitorWithMissingMetricDescriptions(org.palladiosimulator.monitorrepository.Monitor passedMonitor, org.palladiosimulator.monitorrepository.Monitor unusedMonitor, boolean expertMode)
    Creates a Monitor with all of the Metric Description <-> Measurement Specification pairs that do not already exist in the passedMonitor needed for the left half of the 3rd Wizard Page
    Map<org.palladiosimulator.metricspec.MetricDescription,Boolean>
    getAllValidMetricDescriptionsForMeasuringPoint(org.palladiosimulator.monitorrepository.Monitor passedMonitor)
    returns the map of valid MetricDescription, boolean(suggested) for the corresponding Measuring Point.
    void
    moveAllMeasurementSpecificationsToMonitor(org.palladiosimulator.monitorrepository.Monitor sendingMonitor, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
    Moves all Measurement Specifications from one Monitor to another.
    void
    moveMeasurementSpecificationToMonitor(org.palladiosimulator.monitorrepository.MeasurementSpecification selectedMeasurementSpecification, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
    Moves the selected Measurement Specification from one Monitor to the other.
    void
    moveSuggestedMeasurementSpecificationsToMonitor(org.palladiosimulator.monitorrepository.Monitor sendingMonitor, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
    Moves the Metric Descriptions that are flagged as suggested to the receiving Monitor.
    provideTextualDescriptionForMetricDescription(org.palladiosimulator.metricspec.MetricDescription aMetricDescription)
    Returns the textualDescription of a Metric Description.
    void
    removeAllMeasurementSpecificationsFromMonitor(org.palladiosimulator.monitorrepository.Monitor sendingMonitor, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
    Removes all MeasurementSpecifications from the Wizard Monitor and adds them back to the temp Monitor.
    void
    removeMeasurementSpecificationFromMonitor(org.palladiosimulator.monitorrepository.MeasurementSpecification selectedMeasurementSpecification, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
    Removes the measurement specification from the receiving monitor.
    void
    setMetricDescriptionForEveryMeasurementSpecification(EList<org.palladiosimulator.metricspec.MetricDescription> nonMatchingMetricDesciptions, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList)
    Sets a Metric Description for every Measurement Specification

    Methods inherited from class java.lang.Object

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

    • UnselectedMetricSpecificationsProvider

      public UnselectedMetricSpecificationsProvider()
  • Method Details

    • createMonitorWithMissingMetricDescriptions

      public void createMonitorWithMissingMetricDescriptions(org.palladiosimulator.monitorrepository.Monitor passedMonitor, org.palladiosimulator.monitorrepository.Monitor unusedMonitor, boolean expertMode)
      Creates a Monitor with all of the Metric Description <-> Measurement Specification pairs that do not already exist in the passedMonitor needed for the left half of the 3rd Wizard Page
      Parameters:
      passedMonitor - The Monitor that gets passed from the previous Wizard Page
    • getAllValidMetricDescriptionsForMeasuringPoint

      public Map<org.palladiosimulator.metricspec.MetricDescription,Boolean> getAllValidMetricDescriptionsForMeasuringPoint(org.palladiosimulator.monitorrepository.Monitor passedMonitor)
      returns the map of valid MetricDescription, boolean(suggested) for the corresponding Measuring Point.
      Parameters:
      passedMP -
      Returns:
      the map Of MetricDescription, boolean(suggested) pairs.
    • moveMeasurementSpecificationToMonitor

      public void moveMeasurementSpecificationToMonitor(org.palladiosimulator.monitorrepository.MeasurementSpecification selectedMeasurementSpecification, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
      Moves the selected Measurement Specification from one Monitor to the other. Needed for implementation of Left/Right Buttons in Wizard Page 3
      Parameters:
      selectedMetricDescription -
      sendingMonitor -
      receivingMonitor -
    • removeMeasurementSpecificationFromMonitor

      public void removeMeasurementSpecificationFromMonitor(org.palladiosimulator.monitorrepository.MeasurementSpecification selectedMeasurementSpecification, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
      Removes the measurement specification from the receiving monitor. If in edit mode the resource needs to be deleted through emf command to avoid write transaction errors
      Parameters:
      selectedMeasurementSpecification -
      receivingMonitor -
      isInEditMode -
    • moveAllMeasurementSpecificationsToMonitor

      public void moveAllMeasurementSpecificationsToMonitor(org.palladiosimulator.monitorrepository.Monitor sendingMonitor, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
      Moves all Measurement Specifications from one Monitor to another. Needed for the double Arrow (move All) in the 3rd Wizard Page
      Parameters:
      sendingMonitor -
      receivingMonitor -
    • moveSuggestedMeasurementSpecificationsToMonitor

      public void moveSuggestedMeasurementSpecificationsToMonitor(org.palladiosimulator.monitorrepository.Monitor sendingMonitor, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
      Moves the Metric Descriptions that are flagged as suggested to the receiving Monitor. Checks if receiving Monitor does not already have the Metric Description.
      Parameters:
      sendingMonitor -
      receivingMonitor -
      isInEditMode -
    • removeAllMeasurementSpecificationsFromMonitor

      public void removeAllMeasurementSpecificationsFromMonitor(org.palladiosimulator.monitorrepository.Monitor sendingMonitor, org.palladiosimulator.monitorrepository.Monitor receivingMonitor, boolean isInEditMode)
      Removes all MeasurementSpecifications from the Wizard Monitor and adds them back to the temp Monitor. EditMode requires working with a deep copy to first move to temp monitor and then delete from wizard Monitor.
      Parameters:
      sendingMonitor -
      receivingMonitor -
      isInEditMode -
    • setMetricDescriptionForEveryMeasurementSpecification

      public void setMetricDescriptionForEveryMeasurementSpecification(EList<org.palladiosimulator.metricspec.MetricDescription> nonMatchingMetricDesciptions, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList)
      Sets a Metric Description for every Measurement Specification
      Parameters:
      nonMatchingMetricDesciptions -
      mSpecList -
    • createMeasurementSpecificationsForEveryMetricDescription

      public void createMeasurementSpecificationsForEveryMetricDescription(EList<org.palladiosimulator.metricspec.MetricDescription> nonMatchingMetricDesciptions, org.palladiosimulator.monitorrepository.MonitorRepositoryFactory monFactory, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList)
      Create a MSpec for every Metric Description
      Parameters:
      nonMatchingMetricDesciptions -
      monFactory -
      mSpecList -
    • provideTextualDescriptionForMetricDescription

      public String provideTextualDescriptionForMetricDescription(org.palladiosimulator.metricspec.MetricDescription aMetricDescription)
      Returns the textualDescription of a Metric Description.
      Parameters:
      aMetricDescription -
      Returns: