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
currentSessionIdFields inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
NULL -
Constructor Summary
ConstructorsConstructorDescriptionOpenWorkload(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 TypeMethodDescriptionvoidcancel()Cancels the workload driver and prevents it from scheduling new demand.protected voidvoidrun()Starts the workloadvoidsetInterarrivalTime(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, updateNewSessionIDMethods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
addProcessListener, getId, getRawId, isTerminated, passivate, passivate, preempt, removeProcessListener, scheduleAtMethods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
getEncapsulatedEntity, isScheduled, rescheduleMethods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
isScheduled, rescheduleMethods 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: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
-
internalLifeCycle
protected void internalLifeCycle()- Specified by:
internalLifeCyclein classSimuComSimProcess
-
getUserFactory
- Specified by:
getUserFactoryin interfaceIWorkloadDriver
-
setInterarrivalTime
-