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 aMeasuringPointand produces aMeasurementwhenever the property observed by theMeasuringPointchanges.TODO document caching
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisableCaching()voidenableCaching()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
nullprobe.
-
enableCaching
void enableCaching()
-
disableCaching
void disableCaching()
-
-