public class OpenWorkload extends SimuComSimProcess implements ICancellableWorkloadDriver
currentSessionId
Constructor and Description |
---|
OpenWorkload(SimuComModel model,
IUserFactory userFactory,
java.lang.String interArrivalTime)
Constructor of the open workload driver
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the workload driver and prevents it from scheduling new demand.
|
IUserFactory |
getUserFactory() |
protected void |
internalLifeCycle() |
void |
run()
Starts the workload
|
void |
setInterarrivalTime(java.lang.String newInterarrivalTime) |
activate, addProcessToSimStatus, addTerminatedObserver, fireTerminated, getCurrentSessionId, getModel, getPriority, getRequestContext, getRootProcess, getSimProcessStatus, hold, isFinished, lifeCycle, notifyResuming, notifySuspending, notifyTerminated, removeProcessFromSimStatus, removeTerminatedObserver, setPriority, timeout, updateNewSessionID
addProcessListener, getId, getRawId, isTerminated, passivate, passivate, preempt, removeProcessListener, scheduleAt
getEncapsulatedEntity, isScheduled, reschedule
public OpenWorkload(SimuComModel model, IUserFactory userFactory, java.lang.String interArrivalTime)
model
- The simulation model this driver belongs touserFactory
- The factory which is used to bread the usersinterArrivalTime
- The time to wait between leaving a new user to its fatepublic void run()
IWorkloadDriver
run
in interface IWorkloadDriver
public void cancel()
ICancellableWorkloadDriver
cancel
in interface ICancellableWorkloadDriver
protected void internalLifeCycle()
internalLifeCycle
in class SimuComSimProcess
public IUserFactory getUserFactory()
getUserFactory
in interface IWorkloadDriver
public void setInterarrivalTime(java.lang.String newInterarrivalTime)