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, scheduleAt
getEncapsulatedEntity, isScheduled, reschedule
getName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, passivate
isScheduled, reschedule
public int getPriority()
getPriority
in interface ISchedulableProcess
public void setPriority(int priority)
setPriority
in interface ISchedulableProcess
public void activate()
ISchedulableProcess
activate
in interface ISchedulableProcess
public void timeout(String timeoutFailureTypeId)
ISchedulableProcess
timeout
in interface ISchedulableProcess
timeoutFailureTypeId
- the name of the triggered timeout failurepublic void addTerminatedObserver(IActiveResource r)
addTerminatedObserver
in interface ISchedulableProcess
public void fireTerminated()
fireTerminated
in interface ISchedulableProcess
public long getCurrentSessionId()
public org.palladiosimulator.probeframework.measurement.RequestContext getRequestContext()
RequestContext
in which this simulated process is executed.public ISchedulableProcess getRootProcess()
ISchedulableProcess
getRootProcess
in interface ISchedulableProcess
public Process getSimProcessStatus()
public void hold(double d)
public boolean isFinished()
ISchedulableProcess
isFinished
in interface ISchedulableProcess
public final void lifeCycle()
lifeCycle
in class AbstractSimProcessDelegator
public void removeTerminatedObserver(IActiveResource r)
removeTerminatedObserver
in interface ISchedulableProcess
public void notifyResuming(ISimProcess process)
ISimProcessListener
notifyResuming
in interface ISimProcessListener
process
- the simulated processpublic void notifySuspending(ISimProcess process)
ISimProcessListener
notifySuspending
in interface ISimProcessListener
process
- the simulated processpublic void notifyTerminated(ISimProcess process)
notifyTerminated
in interface ISimProcessListener
public SimuComModel getModel()
SimulationElement
getModel
in class SimulationElement