Package de.uka.ipd.sdq.scheduler.sensors
Interface IActiveResourceStateSensor
public interface IActiveResourceStateSensor
Observer of a resource's state.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
demandCompleted
(ISchedulableProcess simProcess) Notifies the sensor about a process whose demand has been completed by the resource.void
update
(long state, int instanceId) Notifies the sensor about a state change of the resource.
-
Method Details
-
update
void update(long state, int instanceId) Notifies the sensor about a state change of the resource.- Parameters:
state
- the changed stateinstanceId
- id of the instance whose state changed
-
demandCompleted
Notifies the sensor about a process whose demand has been completed by the resource.- Parameters:
simProcess
- the process whose demand has been completed by the resource.typeID
- the id of the resource
-