de.uka.ipd.sdq.scheduler
Interface IRunningProcess

All Known Subinterfaces:
IActiveProcess
All Known Implementing Classes:
ActiveProcess, PreemptiveProcess, ProcessWithPriority

public interface IRunningProcess

In oder to be scheduled properly, processes need some additional runtime information. Runnable processes provide exactly this necessary information. All processes that implement the ISchedulableProcess can be wrapped by this class.

Author:
jens

Method Summary
 void addStateSensor(IProcessStateSensor sensor)
          Observer pattern.
 String getId()
           
 String getName()
           
 ISchedulableProcess getSchedulableProcess()
           
 void removeStateSensor(IProcessStateSensor sensor)
          Observer pattern.
 

Method Detail

getSchedulableProcess

ISchedulableProcess getSchedulableProcess()
Returns:
Returns the process wrapped by this instance.

getName

String getName()
Returns:
Returns the name of this process.

getId

String getId()
Returns:
Returns the unique identifier of the process.

addStateSensor

void addStateSensor(IProcessStateSensor sensor)
Observer pattern. Adds a new state sensor to the process.

Parameters:
sensor -

removeStateSensor

void removeStateSensor(IProcessStateSensor sensor)
Observer pattern. Removes a state sensor from the process.

Parameters:
sensor -