public abstract class SimuComSimProcess extends AbstractSimProcessDelegator implements ISchedulableProcess, ISimProcessListener
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Notifies the process to resume its execution.
|
void |
addTerminatedObserver(IActiveResource r) |
void |
fireTerminated() |
long |
getCurrentSessionId() |
SimuComModel |
getModel()
Returns the simulation model.
|
int |
getPriority() |
org.palladiosimulator.probeframework.measurement.RequestContext |
getRequestContext()
Returns the
RequestContext in which this simulated process is executed. |
ISchedulableProcess |
getRootProcess()
Returns the root process that spawned this processes (directly or indirectly).
|
Process |
getSimProcessStatus() |
void |
hold(double d) |
boolean |
isFinished()
Return whether this process is finished
|
void |
lifeCycle() |
void |
notifyResuming(ISimProcess process)
This method is called whenever the given simulated process is about to be resumed.
|
void |
notifySuspending(ISimProcess process)
This method is called whenever the given simulated process is about to be suspended.
|
void |
notifyTerminated(ISimProcess process) |
void |
removeTerminatedObserver(IActiveResource r) |
void |
setPriority(int priority) |
void |
timeout(String timeoutFailureTypeId)
Forces a suspended process to run into a timeout failure.
|
addProcessListener, getId, getRawId, isTerminated, passivate, passivate, removeProcessListener, scheduleAtgetEncapsulatedEntity, isScheduled, reschedulegetNameequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, passivateisScheduled, reschedulepublic int getPriority()
getPriority in interface ISchedulableProcesspublic void setPriority(int priority)
setPriority in interface ISchedulableProcesspublic void activate()
ISchedulableProcessactivate in interface ISchedulableProcesspublic void timeout(String timeoutFailureTypeId)
ISchedulableProcesstimeout in interface ISchedulableProcesstimeoutFailureTypeId - the name of the triggered timeout failurepublic void addTerminatedObserver(IActiveResource r)
addTerminatedObserver in interface ISchedulableProcesspublic void fireTerminated()
fireTerminated in interface ISchedulableProcesspublic long getCurrentSessionId()
public org.palladiosimulator.probeframework.measurement.RequestContext getRequestContext()
RequestContext in which this simulated process is executed.public ISchedulableProcess getRootProcess()
ISchedulableProcessgetRootProcess in interface ISchedulableProcesspublic Process getSimProcessStatus()
public void hold(double d)
public boolean isFinished()
ISchedulableProcessisFinished in interface ISchedulableProcesspublic final void lifeCycle()
lifeCycle in class AbstractSimProcessDelegatorpublic void removeTerminatedObserver(IActiveResource r)
removeTerminatedObserver in interface ISchedulableProcesspublic void notifyResuming(ISimProcess process)
ISimProcessListenernotifyResuming in interface ISimProcessListenerprocess - the simulated processpublic void notifySuspending(ISimProcess process)
ISimProcessListenernotifySuspending in interface ISimProcessListenerprocess - the simulated processpublic void notifyTerminated(ISimProcess process)
notifyTerminated in interface ISimProcessListenerpublic SimuComModel getModel()
SimulationElementgetModel in class SimulationElement