public class TakeScheduledResourceDemandProbe extends org.palladiosimulator.probeframework.probes.BasicEventProbe<AbstractScheduledResource,Double,javax.measure.quantity.Duration> implements IDemandListener
IDemandListener interface
and to register itself in the registerListener method to this scheduled resource.
The measured demand is directly received by the demand call-back method of the
listener.| Constructor and Description |
|---|
TakeScheduledResourceDemandProbe(AbstractScheduledResource resource)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
demand(double demand)
The demand measure is directly forwarded to the notify method.
|
void |
demandCompleted(ISchedulableProcess simProcess)
No need to react on demand completion within this probe.
|
addObserver, getMetricDesciption, isCompatibleWith, removeObserverpublic TakeScheduledResourceDemandProbe(AbstractScheduledResource resource)
resource - The event source is a scheduled resource, thus, notifying about newly available
demands.public void demand(double demand)
demand in interface IDemandListenerpublic void demandCompleted(ISchedulableProcess simProcess)
demandCompleted in interface IDemandListener