Class OpenWorkload
java.lang.Object
de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
de.uka.ipd.sdq.simucomframework.SimuComSimProcess
de.uka.ipd.sdq.simucomframework.usage.OpenWorkload
- All Implemented Interfaces:
de.uka.ipd.sdq.scheduler.ISchedulableProcess
,ICancellableWorkloadDriver
,IWorkloadDriver
,de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
,de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess
,de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
Implementation of the workload driver interface for open workloads
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.simucomframework.SimuComSimProcess
currentSessionId
Fields inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
NULL
-
Constructor Summary
ConstructorDescriptionOpenWorkload
(SimuComModel model, IUserFactory userFactory, String interArrivalTime, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) Constructor of the open workload driver -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancels the workload driver and prevents it from scheduling new demand.protected void
void
run()
Starts the workloadvoid
setInterarrivalTime
(String newInterarrivalTime) Methods inherited from class de.uka.ipd.sdq.simucomframework.SimuComSimProcess
activate, addProcessToSimStatus, addTerminatedObserver, fireTerminated, getCurrentSessionId, getModel, getPriority, getRequestContext, getRootProcess, getSimProcessStatus, hold, isFinished, lifeCycle, notifyResuming, notifySuspending, notifyTerminated, removeProcessFromSimStatus, removeTerminatedObserver, setPriority, timeout, updateNewSessionID
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
addProcessListener, getId, getRawId, isTerminated, passivate, passivate, preempt, removeProcessListener, scheduleAt
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
getEncapsulatedEntity, isScheduled, reschedule
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
getName
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.simulation.abstractsimengine.IEntity
isScheduled, reschedule
Methods inherited from interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
getId, passivate
-
Constructor Details
-
OpenWorkload
public OpenWorkload(SimuComModel model, IUserFactory userFactory, String interArrivalTime, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) Constructor of the open workload driver- Parameters:
model
- The simulation model this driver belongs touserFactory
- The factory which is used to bread the usersinterArrivalTime
- The time to wait between leaving a new user to its fate
-
-
Method Details
-
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
-
internalLifeCycle
protected void internalLifeCycle()- Specified by:
internalLifeCycle
in classSimuComSimProcess
-
getUserFactory
- Specified by:
getUserFactory
in interfaceIWorkloadDriver
-
setInterarrivalTime
-