Class BasicEventProbe<EventSourceType,V,Q extends javax.measure.quantity.Quantity>
- java.lang.Object
-
- org.palladiosimulator.probeframework.probes.Probe
-
- org.palladiosimulator.probeframework.probes.EventProbe<EventSourceType>
-
- org.palladiosimulator.probeframework.probes.BasicEventProbe<EventSourceType,V,Q>
-
- Type Parameters:
EventSourceType
- The type of the event source (as needed by the superclass).V
- The value type of the basic measure (as needed by the superclass).Q
- The quantity type of the basic measure (as needed by the superclass).
- All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<IProbeListener>
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
- Direct Known Subclasses:
ExampleTakeCPUDemandProbe
public abstract class BasicEventProbe<EventSourceType,V,Q extends javax.measure.quantity.Quantity> extends EventProbe<EventSourceType> implements org.palladiosimulator.metricspec.metricentity.IMetricEntity
Basic event probes refer to exactly one base metric description, thus, specializing the general event probe. Moreover, basic event probes provide a genericnotify
method. This method allows subclasses to pass an event measurement to it when they receive an event. Subsequently,notify
can generically inform registered probe listeners about a newly available probe measurement. For characterizing the measurement itself, basic event probes refer to V as the value of the measure to Q as their quantity. Note that this class still leaves the implementation of the abstract methodregisterListener
to its subclasses.
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.probeframework.probes.EventProbe
eventSource
-
Fields inherited from class org.palladiosimulator.probeframework.probes.Probe
metricEntityDelegate
-
-
Constructor Summary
Constructors Constructor Description BasicEventProbe(EventSourceType eventSource, org.palladiosimulator.metricspec.BaseMetricDescription metricDescription)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
notify(javax.measure.Measure<V,Q> eventMeasure)
Allows subclasses to pass an event measurement to it when they receive an event.-
Methods inherited from class org.palladiosimulator.probeframework.probes.EventProbe
registerListener
-
Methods inherited from class org.palladiosimulator.probeframework.probes.Probe
addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserver
-
-
-
-
Constructor Detail
-
BasicEventProbe
public BasicEventProbe(EventSourceType eventSource, org.palladiosimulator.metricspec.BaseMetricDescription metricDescription)
Default constructor.- Parameters:
eventSource
- The event source as needed by the superclass.metricDescription
- The metric description as needed by the superclass.
-
-
Method Detail
-
notify
protected void notify(javax.measure.Measure<V,Q> eventMeasure)
Allows subclasses to pass an event measurement to it when they receive an event. Subsequently,notify
can generically inform registered probe listeners about a newly available probe measurement.- Parameters:
eventMeasure
- The measurement received from the event.
-
-