public class ClosedWorkload extends Object implements IWorkloadDriver
| Constructor and Description |
|---|
ClosedWorkload(IUserFactory userFactory,
int population)
Constructor of the closed workload driver
|
| Modifier and Type | Method and Description |
|---|---|
IUserFactory |
getUserFactory() |
void |
run()
Starts the workload
|
void |
setPopulation(int newPopulation) |
public ClosedWorkload(IUserFactory userFactory, int population)
userFactory - Factory used to create the userspopulation - Number of users in the systempublic void run()
IWorkloadDriverrun in interface IWorkloadDriverpublic IUserFactory getUserFactory()
getUserFactory in interface IWorkloadDriverpublic void setPopulation(int newPopulation)