Class PRMRecorder

java.lang.Object
org.palladiosimulator.simulizar.metrics.PRMRecorder
Direct Known Subclasses:
AbstractMeasurementAggregator, FeedThroughRecorder, MonitorRepositoryMapRuntimeMeasurementsRecorder, SlidingWindowRuntimeMeasurementsRecorder

public abstract class PRMRecorder extends Object
Recorder for saving measurement of a measurement specification and pcm model element in prm model. Can be used as base class for aggregators or performance metrics.
  • Constructor Details

    • PRMRecorder

      public PRMRecorder(RuntimeMeasurementModel prmAccess, org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
      Constructor
      Parameters:
      prmModel - the model helper.
      measurementSpecification - the measurement specification.
      measuringPoint - The measuring point to be used.
    • PRMRecorder

      public PRMRecorder(RuntimeMeasurementModel prmAccess, org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification)
      Constructor
      Parameters:
      prmModel - the model helper.
      measurementSpecification - the measurement specification.
  • Method Details

    • detachFromPRM

      protected final void detachFromPRM()
    • updateMeasurementValue

      protected void updateMeasurementValue(double value)
      Add measurement for measurement specification and PCMModelElementMeasurement to prm model.
      Parameters:
      value - the measurement value.
    • getMeasurementSpecification

      protected org.palladiosimulator.monitorrepository.MeasurementSpecification getMeasurementSpecification()
      Returns:
      returns the measurementSpecification.
    • getPRMMeasurement

      protected final RuntimeMeasurement getPRMMeasurement()
      Returns:
      returns the pcmModelElementMeasurement.
    • getPrmModel

      protected RuntimeMeasurementModel getPrmModel()
      Returns:
      returns the prmModel.