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 Summary
Constructors Constructor Description PRMRecorder(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
detachFromPRM()
protected org.palladiosimulator.monitorrepository.MeasurementSpecification
getMeasurementSpecification()
protected RuntimeMeasurement
getPRMMeasurement()
protected RuntimeMeasurementModel
getPrmModel()
protected void
updateMeasurementValue(double value)
Add measurement for measurement specification and PCMModelElementMeasurement to prm model.
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-