public class OpenWorkload extends SimuComSimProcess implements IWorkloadDriver
Constructor and Description |
---|
OpenWorkload(SimuComModel model,
IUserFactory userFactory,
String interArrivalTime)
Constructor of the open workload driver
|
Modifier and Type | Method and Description |
---|---|
IUserFactory |
getUserFactory() |
void |
run()
Starts the workload
|
void |
setInterarrivalTime(String newInterarrivalTime) |
activate, addTerminatedObserver, fireTerminated, getCurrentSessionId, getModel, getPriority, getRequestContext, getRootProcess, getSimProcessStatus, hold, isFinished, lifeCycle, notifyResuming, notifySuspending, notifyTerminated, removeTerminatedObserver, setPriority, timeout
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 OpenWorkload(SimuComModel model, IUserFactory userFactory, 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 IUserFactory getUserFactory()
getUserFactory
in interface IWorkloadDriver
public void setInterarrivalTime(String newInterarrivalTime)