Class EventProbe<EventSourceType>

  • Type Parameters:
    EventSourceType - The type of the event source.
    All Implemented Interfaces:
    org.palladiosimulator.commons.designpatterns.IAbstractObservable<IProbeListener>, org.palladiosimulator.metricspec.metricentity.IMetricEntity
    Direct Known Subclasses:
    BasicEventProbe, EventProbeList

    public abstract class EventProbe<EventSourceType>
    extends Probe
    Event probes measure as soon as an event is emitted for which they are registered. Therefore, they explicitly refer to an eventSource object. Subclasses have to realize the registration to this object by implementing the template method registerListener.
    • Field Detail

      • eventSource

        protected final EventSourceType eventSource
        The event source.
    • Constructor Detail

      • EventProbe

        public EventProbe​(org.palladiosimulator.metricspec.MetricDescription metricDescription,
                          EventSourceType eventSource)
        Default constructor. Expects a suitable event source object (main characteristic of this type of probe).
        Parameters:
        eventSource - The event source object.
        metricDescription - The metric of the measurements of this probe.
    • Method Detail

      • registerListener

        protected abstract void registerListener()
        Template method for registering observers to the event source.