Package de.uka.ipd.sdq.scheduler
Interface ISchedulableProcess
- All Superinterfaces:
de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
public interface ISchedulableProcess
extends de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
Process that can be scheduled for execution on an active resource or can acquire and release
passive resources.
-
Field Summary
Fields inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
NULL
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Notifies the process to resume its execution.void
void
getId()
Unique identifier of the process.int
Returns the root process that spawned this processes (directly or indirectly).boolean
Return whether this process is finishedvoid
Notifies the process to suspend its execution.void
void
setPriority
(int prio) void
Forces a suspended process to run into a timeout failure.Methods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
isScheduled, reschedule
-
Method Details
-
activate
void activate()Notifies the process to resume its execution. Is only called if the process has been passivated before. -
passivate
void passivate()Notifies the process to suspend its execution. -
getId
String getId()Unique identifier of the process.- Returns:
- A unique ID identifying this process
-
getRootProcess
ISchedulableProcess getRootProcess()Returns the root process that spawned this processes (directly or indirectly). The root process is used to create this process' scheduling meta-data. The root process has to point to itself.- Returns:
- ISchedulableProcess which is the root process
-
isFinished
boolean isFinished()Return whether this process is finished- Returns:
- true if the process has finished its execution
-
fireTerminated
void fireTerminated() -
addTerminatedObserver
-
removeTerminatedObserver
-
getPriority
int getPriority() -
setPriority
void setPriority(int prio) -
timeout
Forces a suspended process to run into a timeout failure. Used for passive resource timeouts- Parameters:
timeoutFailureName
- the name of the triggered timeout failure
-