Package de.uka.ipd.sdq.scheduler
Interface IRunningProcess
-
- All Superinterfaces:
de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
public interface IRunningProcess extends de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
-
-