Class EventBasedBasicProbe<V,Q extends javax.measure.quantity.Quantity>
java.lang.Object
org.palladiosimulator.probeframework.probes.Probe
org.palladiosimulator.analyzer.slingshot.monitor.probes.EventBasedProbe<V,Q>
org.palladiosimulator.analyzer.slingshot.monitor.probes.EventBasedBasicProbe<V,Q>
- Type Parameters:
V
- The value type of the measurement.Q
- The quantity type of the measurement.
- All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.probeframework.probes.listener.IProbeListener>
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
- Direct Known Subclasses:
EventCurrentSimulationTimeProbe
public abstract class EventBasedBasicProbe<V,Q extends javax.measure.quantity.Quantity>
extends EventBasedProbe<V,Q>
A probe that is
DESEvent
-based and probes for a
BasicMeasurement
.
Measurements/Probes are taken when the associated DESEvent
was
published.-
Field Summary
Fields inherited from class org.palladiosimulator.probeframework.probes.Probe
metricEntityDelegate
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EventBasedBasicProbe
(org.palladiosimulator.metricspec.MetricDescription metricDescription) Constructs an event-based probe withEventDistinguisher.DEFAULT_DISTINGUISHER
.EventBasedBasicProbe
(org.palladiosimulator.metricspec.MetricDescription metricDescription, EventDistinguisher distinguisher) Constructs an event-based probe. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.palladiosimulator.probeframework.measurement.ProbeMeasurement
getProbeMeasurement
(org.palladiosimulator.analyzer.slingshot.common.events.DESEvent event) Get aProbeMeasurement
from anDESEvent
.Methods inherited from class org.palladiosimulator.analyzer.slingshot.monitor.probes.EventBasedProbe
getDistinguisher, getMeasurement, takeMeasurement
Methods inherited from class org.palladiosimulator.probeframework.probes.Probe
addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserver
-
Constructor Details
-
EventBasedBasicProbe
protected EventBasedBasicProbe(org.palladiosimulator.metricspec.MetricDescription metricDescription) Constructs an event-based probe withEventDistinguisher.DEFAULT_DISTINGUISHER
.- Parameters:
metricDescription
- A metric description needed by the super-class.
-
EventBasedBasicProbe
public EventBasedBasicProbe(org.palladiosimulator.metricspec.MetricDescription metricDescription, EventDistinguisher distinguisher) Constructs an event-based probe.- Parameters:
metricDescription
- A metric description needed by the super-class.distinguisher
- The distinguisher that is used for creatingRequestContext
s.
-
-
Method Details
-
getProbeMeasurement
protected org.palladiosimulator.probeframework.measurement.ProbeMeasurement getProbeMeasurement(org.palladiosimulator.analyzer.slingshot.common.events.DESEvent event) Description copied from class:EventBasedProbe
Get aProbeMeasurement
from anDESEvent
. Depending on the type of probe, the measurementsIMeasureProvider
may differ.- Specified by:
getProbeMeasurement
in classEventBasedProbe<V,
Q extends javax.measure.quantity.Quantity> - Parameters:
event
- The event that happened.- Returns:
- A
ProbeMeasurement
from the event.
-