Class BasicEventProbe<EventSourceType,​V,​Q extends javax.measure.quantity.Quantity>

  • 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.
    • 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.