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 generic
notify
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 method
registerListener
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
ConstructorDescriptionBasicEventProbe
(EventSourceType eventSource, org.palladiosimulator.metricspec.BaseMetricDescription metricDescription) Default constructor. -
Method Summary
Methods inherited from class org.palladiosimulator.probeframework.probes.EventProbe
registerListener
Methods inherited from class org.palladiosimulator.probeframework.probes.Probe
addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.palladiosimulator.metricspec.metricentity.IMetricEntity
getMetricDesciption, isCompatibleWith
-
Constructor Details
-
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 Details
-
notify
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.
-