public class ClosedWorkloadUser extends SimuComSimProcess implements IUser
| Constructor and Description |
|---|
ClosedWorkloadUser(SimuComModel owner,
String name,
IScenarioRunner scenarioRunner,
String thinkTimeSpec,
List<org.palladiosimulator.probeframework.probes.Probe> usageStartStopProbes)
Constructor of the closed workload user
|
| Modifier and Type | Method and Description |
|---|---|
org.palladiosimulator.probeframework.measurement.RequestContext |
getRequestContext()
Returns the
RequestContext in which this simulated process is executed. |
void |
requestStop() |
void |
scenarioRunner(SimuComSimProcess thread)
Execute the behaviour represented by this object using the given simulation process
|
void |
startUserLife()
Called by the framework to tell the user that he just was born and that he is now ready to
conquer the world.
|
activate, addTerminatedObserver, fireTerminated, getCurrentSessionId, getModel, getPriority, getRootProcess, getSimProcessStatus, hold, isFinished, lifeCycle, notifyResuming, notifySuspending, notifyTerminated, removeTerminatedObserver, setPriority, timeoutaddProcessListener, getId, getRawId, isTerminated, passivate, passivate, removeProcessListener, scheduleAtgetEncapsulatedEntity, isScheduled, reschedulegetNameequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, passivateisScheduled, reschedulepublic ClosedWorkloadUser(SimuComModel owner, String name, IScenarioRunner scenarioRunner, String thinkTimeSpec, List<org.palladiosimulator.probeframework.probes.Probe> usageStartStopProbes)
owner - The model this user belongs toname - The users namescenarioRunner - The scenario runner determining the users behaviourthinkTimeSpec - A stoex which determines the users think timeusageStartStopProbes - public void scenarioRunner(SimuComSimProcess thread)
IScenarioRunnerscenarioRunner in interface IScenarioRunnerthread - The simulation process used to execute the behaviour encapsulated in this objectpublic void startUserLife()
IUserstartUserLife in interface IUserpublic org.palladiosimulator.probeframework.measurement.RequestContext getRequestContext()
RequestContext in which this simulated process is executed.
A closed workload user runs through his lifecycle several times in series. Each time the same
SimuComSimProcess is used. In order to be able to distinguish between the different
runs, the request context id gets concatenated with the run count. The run counts represents
how often the lifecycle has been executed. Thus the returned ID is unique for each run
through the lifecycle.
getRequestContext in class SimuComSimProcesspublic void requestStop()