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 voidcancel()Cancels the workload driver and prevents it from scheduling new demand.IUserFactorygetUserFactory()voidrun()Starts the workloadvoidsetPopulation(int newPopulation)voidsetThinkTime(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:IWorkloadDriverStarts the workload- Specified by:
runin interfaceIWorkloadDriver
-
cancel
public void cancel()
Description copied from interface:ICancellableWorkloadDriverCancels the workload driver and prevents it from scheduling new demand.- Specified by:
cancelin interfaceICancellableWorkloadDriver
-
getUserFactory
public IUserFactory getUserFactory()
- Specified by:
getUserFactoryin interfaceIWorkloadDriver
-
setPopulation
public void setPopulation(int newPopulation)
-
setThinkTime
public void setThinkTime(String newThinkTime)
-
-