Class ClosedWorkloadUserFactory
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.usage.AbstractWorkloadUserFactory
-
- de.uka.ipd.sdq.simucomframework.usage.ClosedWorkloadUserFactory
-
- All Implemented Interfaces:
IClosedWorkloadUserFactory
,IUserFactory
public abstract class ClosedWorkloadUserFactory extends AbstractWorkloadUserFactory implements IClosedWorkloadUserFactory
Factory to create closed workload users
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.simucomframework.usage.AbstractWorkloadUserFactory
model, usageStartStopProbes
-
-
Constructor Summary
Constructors Constructor Description ClosedWorkloadUserFactory(SimuComModel model, String thinkTimeSpec, String usageScenarioURI, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
ClosedWorkloadUserFactory(SimuComModel model, String thinkTimeSpec, org.palladiosimulator.pcm.usagemodel.UsageScenario usageScenario, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract IScenarioRunner
createScenarioRunner()
Template method filled by the generator.ClosedWorkloadUser
createUser()
Instruct this factory to spit out a new uservoid
setThinkTimeSpec(String thinkTimeSpec)
Sets a new think time specification that is applied to newly created users.-
Methods inherited from class de.uka.ipd.sdq.simucomframework.usage.AbstractWorkloadUserFactory
attachResponseTimeCalculator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uka.ipd.sdq.simucomframework.usage.IUserFactory
attachResponseTimeCalculator
-
-
-
-
Constructor Detail
-
ClosedWorkloadUserFactory
public ClosedWorkloadUserFactory(SimuComModel model, String thinkTimeSpec, String usageScenarioURI, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
-
ClosedWorkloadUserFactory
public ClosedWorkloadUserFactory(SimuComModel model, String thinkTimeSpec, org.palladiosimulator.pcm.usagemodel.UsageScenario usageScenario, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
-
-
Method Detail
-
createUser
public ClosedWorkloadUser createUser()
Description copied from interface:IUserFactory
Instruct this factory to spit out a new user- Specified by:
createUser
in interfaceIClosedWorkloadUserFactory
- Specified by:
createUser
in interfaceIUserFactory
- Returns:
- The newly born user
-
setThinkTimeSpec
public void setThinkTimeSpec(String thinkTimeSpec)
Description copied from interface:IClosedWorkloadUserFactory
Sets a new think time specification that is applied to newly created users.- Specified by:
setThinkTimeSpec
in interfaceIClosedWorkloadUserFactory
- Parameters:
thinkTimeSpec
- the new tink time specification. Must not be null.
-
createScenarioRunner
public abstract IScenarioRunner createScenarioRunner()
Template method filled by the generator. Returns the users behaviour.- Returns:
- The behaviour of the users created by this factory
-
-