Class TakeCurrentSimulationTimeProbe
- java.lang.Object
-
- org.palladiosimulator.probeframework.probes.Probe
-
- org.palladiosimulator.probeframework.probes.TriggeredProbe
-
- org.palladiosimulator.probeframework.probes.BasicTriggeredProbe<V,Q>
-
- org.palladiosimulator.probeframework.probes.BasicObjectStateProbe<de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationControl,Double,javax.measure.quantity.Duration>
-
- de.uka.ipd.sdq.simucomframework.probes.TakeCurrentSimulationTimeProbe
-
- All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.probeframework.probes.listener.IProbeListener>
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
public class TakeCurrentSimulationTimeProbe extends org.palladiosimulator.probeframework.probes.BasicObjectStateProbe<de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationControl,Double,javax.measure.quantity.Duration>
Measures a point in time metric (in seconds) by requesting the current simulation time from the simulation controller (observed state object).
-
-
Constructor Summary
Constructors Constructor Description TakeCurrentSimulationTimeProbe(de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationControl simulationControl)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.measure.Measure<Double,javax.measure.quantity.Duration>
getBasicMeasure(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
Measures the current simulation time from the simulation control (observed state object).-
Methods inherited from class org.palladiosimulator.probeframework.probes.BasicObjectStateProbe
getStateObject
-
Methods inherited from class org.palladiosimulator.probeframework.probes.BasicTriggeredProbe
doMeasure
-
Methods inherited from class org.palladiosimulator.probeframework.probes.TriggeredProbe
takeMeasurement, takeMeasurement
-
Methods inherited from class org.palladiosimulator.probeframework.probes.Probe
addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserver
-
-
-
-
Constructor Detail
-
TakeCurrentSimulationTimeProbe
public TakeCurrentSimulationTimeProbe(de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationControl simulationControl)
Default constructor.- Parameters:
simulationControl
- The observer object is a simulation control, thus, allowing to request the current simulation time.
-
-
Method Detail
-
getBasicMeasure
protected javax.measure.Measure<Double,javax.measure.quantity.Duration> getBasicMeasure(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
Measures the current simulation time from the simulation control (observed state object).- Specified by:
getBasicMeasure
in classorg.palladiosimulator.probeframework.probes.BasicTriggeredProbe<Double,javax.measure.quantity.Duration>
-
-