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
ConstructorsModifierConstructorDescriptionprotectedEventBasedBasicProbe(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.ProbeMeasurementgetProbeMeasurement(org.palladiosimulator.analyzer.slingshot.common.events.DESEvent event) Get aProbeMeasurementfrom anDESEvent.Methods inherited from class org.palladiosimulator.analyzer.slingshot.monitor.probes.EventBasedProbe
getDistinguisher, getMeasurement, takeMeasurementMethods 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 creatingRequestContexts.
-
-
Method Details
-
getProbeMeasurement
protected org.palladiosimulator.probeframework.measurement.ProbeMeasurement getProbeMeasurement(org.palladiosimulator.analyzer.slingshot.common.events.DESEvent event) Description copied from class:EventBasedProbeGet aProbeMeasurementfrom anDESEvent. Depending on the type of probe, the measurementsIMeasureProvidermay differ.- Specified by:
getProbeMeasurementin classEventBasedProbe<V,Q extends javax.measure.quantity.Quantity> - Parameters:
event- The event that happened.- Returns:
- A
ProbeMeasurementfrom the event.
-