Class PRMRecorder
java.lang.Object
org.palladiosimulator.simulizar.metrics.PRMRecorder
- Direct Known Subclasses:
AbstractMeasurementAggregator
,FeedThroughRecorder
,MonitorRepositoryMapRuntimeMeasurementsRecorder
,SlidingWindowRuntimeMeasurementsRecorder
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 Summary
ConstructorDescriptionPRMRecorder
(RuntimeMeasurementModel prmAccess, org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification) ConstructorPRMRecorder
(RuntimeMeasurementModel prmAccess, org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
protected org.palladiosimulator.monitorrepository.MeasurementSpecification
protected final RuntimeMeasurement
protected RuntimeMeasurementModel
protected void
updateMeasurementValue
(double value) Add measurement for measurement specification and PCMModelElementMeasurement to prm model.
-
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
- Returns:
- returns the pcmModelElementMeasurement.
-
getPrmModel
- Returns:
- returns the prmModel.
-