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

    Constructors
    Modifier
    Constructor
    Description
    protected
    EventBasedBasicProbe(org.palladiosimulator.metricspec.MetricDescription metricDescription)
    Constructs an event-based probe with EventDistinguisher.DEFAULT_DISTINGUISHER.
     
    EventBasedBasicProbe(org.palladiosimulator.metricspec.MetricDescription metricDescription, EventDistinguisher distinguisher)
    Constructs an event-based probe.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.palladiosimulator.probeframework.measurement.ProbeMeasurement
    getProbeMeasurement(org.palladiosimulator.analyzer.slingshot.common.events.DESEvent event)
    Get a ProbeMeasurement from an DESEvent.

    Methods inherited from class org.palladiosimulator.analyzer.slingshot.monitor.probes.EventBasedProbe

    getDistinguisher, getMeasurement, takeMeasurement

    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
  • Constructor Details

    • EventBasedBasicProbe

      protected EventBasedBasicProbe(org.palladiosimulator.metricspec.MetricDescription metricDescription)
      Constructs an event-based probe with EventDistinguisher.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 creating RequestContexts.
  • Method Details

    • getProbeMeasurement

      protected org.palladiosimulator.probeframework.measurement.ProbeMeasurement getProbeMeasurement(org.palladiosimulator.analyzer.slingshot.common.events.DESEvent event)
      Description copied from class: EventBasedProbe
      Get a ProbeMeasurement from an DESEvent. Depending on the type of probe, the measurements IMeasureProvider may differ.
      Specified by:
      getProbeMeasurement in class EventBasedProbe<V,Q extends javax.measure.quantity.Quantity>
      Parameters:
      event - The event that happened.
      Returns:
      A ProbeMeasurement from the event.