public abstract class SimulatedProcess extends Object implements ISimProcess
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
LOGGER |
ProcessState |
myProcessState
Current state of this process
|
ISimProcessStrategy |
processStrategy
Strategy used to suspend threads if requested
|
Constructor and Description |
---|
SimulatedProcess(ISimProcessStrategy processStrategy)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actions() |
void |
addProcessListener(ISimProcessListener l) |
boolean |
isTerminated()
Returns whether this process has finished its execution.
|
void |
passivate()
Passivates this process.
|
void |
removeProcessListener(ISimProcessListener l) |
void |
startProcess(ISimProcessStrategy processStrategy) |
void |
suspend() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
passivate, scheduleAt
isScheduled, reschedule
public static final org.apache.log4j.Logger LOGGER
public ProcessState myProcessState
public final ISimProcessStrategy processStrategy
public SimulatedProcess(ISimProcessStrategy processStrategy)
processStrategy
- public void startProcess(ISimProcessStrategy processStrategy)
public void actions()
public boolean isTerminated()
ISimProcess
isTerminated
in interface ISimProcess
public void passivate()
ISimProcess
scheduleAt
method.passivate
in interface ISimProcess
public void suspend()
public void addProcessListener(ISimProcessListener l)
addProcessListener
in interface ISimProcess
public void removeProcessListener(ISimProcessListener l)
removeProcessListener
in interface ISimProcess