Class ClosedWorkload
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.usage.ClosedWorkload
-
- All Implemented Interfaces:
ICancellableWorkloadDriver
,IWorkloadDriver
public class ClosedWorkload extends Object implements ICancellableWorkloadDriver
Class used for executing a closed workload. The class creates as many users as specified and executes them simultaniously
-
-
Constructor Summary
Constructors Constructor Description ClosedWorkload(IClosedWorkloadUserFactory userFactory, int population)
Constructor of the closed workload driver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancels the workload driver and prevents it from scheduling new demand.IUserFactory
getUserFactory()
void
run()
Starts the workloadvoid
setPopulation(int newPopulation)
void
setThinkTime(String newThinkTime)
-
-
-
Constructor Detail
-
ClosedWorkload
public ClosedWorkload(IClosedWorkloadUserFactory userFactory, int population)
Constructor of the closed workload driver- Parameters:
userFactory
- Factory used to create the userspopulation
- Number of users in the system
-
-
Method Detail
-
run
public void run()
Description copied from interface:IWorkloadDriver
Starts the workload- Specified by:
run
in interfaceIWorkloadDriver
-
cancel
public void cancel()
Description copied from interface:ICancellableWorkloadDriver
Cancels the workload driver and prevents it from scheduling new demand.- Specified by:
cancel
in interfaceICancellableWorkloadDriver
-
getUserFactory
public IUserFactory getUserFactory()
- Specified by:
getUserFactory
in interfaceIWorkloadDriver
-
setPopulation
public void setPopulation(int newPopulation)
-
setThinkTime
public void setThinkTime(String newThinkTime)
-
-