Interface IActiveResourceStateSensor


public interface IActiveResourceStateSensor
Observer of a resource's state.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 state
      instanceId - id of the instance whose state changed
    • demandCompleted

      void demandCompleted(ISchedulableProcess simProcess)
      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