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.ISimulationTimeProvider,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.ISimulationTimeProvider,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).
-
Field Summary
Fields inherited from class org.palladiosimulator.probeframework.probes.Probe
metricEntityDelegate -
Constructor Summary
ConstructorsConstructorDescriptionTakeCurrentSimulationTimeProbe(de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationTimeProvider timeProvider) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
getStateObjectMethods inherited from class org.palladiosimulator.probeframework.probes.BasicTriggeredProbe
doMeasureMethods inherited from class org.palladiosimulator.probeframework.probes.TriggeredProbe
takeMeasurement, takeMeasurementMethods inherited from class org.palladiosimulator.probeframework.probes.Probe
addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.palladiosimulator.metricspec.metricentity.IMetricEntity
getMetricDesciption, isCompatibleWith
-
Constructor Details
-
TakeCurrentSimulationTimeProbe
public TakeCurrentSimulationTimeProbe(de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationTimeProvider timeProvider) Default constructor.- Parameters:
simulationControl- The observer object is a simulation control, thus, allowing to request the current simulation time.
-
-
Method Details
-
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:
getBasicMeasurein classorg.palladiosimulator.probeframework.probes.BasicTriggeredProbe<Double,javax.measure.quantity.Duration>
-