Interface IProbe<E>
-
- Type Parameters:
E
- type of the probed element
- All Superinterfaces:
MeasurementProducer<E>
- All Known Implementing Classes:
AbstractProbe
,ActiveUsersProbe
,InterArrivalTimeProbe
,InterDepartureTimeProbe
,PassiveQueueLengthProbe
,PassiveResourceAcquiredProbe
,PassiveResourceReleasedProbe
,PassiveResourceRequestedProbe
,QueueLengthProbe
,ResourceDemandProbe
,ResourceDemandProbe
,SeffActionEntryTimeProbe
,SeffActionExitTimeProbe
,UsageActionEntryTimeProbe
,UsageActionExitTimeProbe
public interface IProbe<E> extends MeasurementProducer<E>
A probe observes aMeasuringPoint
and produces aMeasurement
whenever the property observed by theMeasuringPoint
changes.TODO document caching
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disableCaching()
void
enableCaching()
Measurement<E>
getLastMeasurementOf(Object who)
Returns the latest measurement caused by the given trigger.MeasuringPoint<E>
getMeasuringPoint()
static <E> IProbe<E>
nullProbe(E element, String property, Object... contexts)
Constructs and returns a probe without any actual behaviour.-
Methods inherited from interface edu.kit.ipd.sdq.eventsim.measurement.MeasurementProducer
forEachMeasurement
-
-
-
-
Method Detail
-
getLastMeasurementOf
Measurement<E> getLastMeasurementOf(Object who)
Returns the latest measurement caused by the given trigger.- Parameters:
who
- the trigger- Returns:
- the most recent measurement caused by the given trigger, or
null
, if there is no such measurement.
-
getMeasuringPoint
MeasuringPoint<E> getMeasuringPoint()
- Returns:
- the measuring point this probe is attached to.
-
nullProbe
static <E> IProbe<E> nullProbe(E element, String property, Object... contexts)
Constructs and returns a probe without any actual behaviour. Can be used as a replacement fornull
.- Returns:
- the constructed
null
probe.
-
enableCaching
void enableCaching()
-
disableCaching
void disableCaching()
-
-