Class ClosedWorkload
java.lang.Object
de.uka.ipd.sdq.simucomframework.usage.ClosedWorkload
- All Implemented Interfaces:
ICancellableWorkloadDriver,IWorkloadDriver
Class used for executing a closed workload. The class creates as many users as specified and
executes them simultaniously
-
Constructor Summary
ConstructorsConstructorDescriptionClosedWorkload(IClosedWorkloadUserFactory userFactory, int population) Constructor of the closed workload driver -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels the workload driver and prevents it from scheduling new demand.voidrun()Starts the workloadvoidsetPopulation(int newPopulation) voidsetThinkTime(String newThinkTime)
-
Constructor Details
-
ClosedWorkload
Constructor of the closed workload driver- Parameters:
userFactory- Factory used to create the userspopulation- Number of users in the system
-
-
Method Details
-
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
- Specified by:
getUserFactoryin interfaceIWorkloadDriver
-
setPopulation
public void setPopulation(int newPopulation) -
setThinkTime
-