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
public class OpenWorkload extends SimuComSimProcess implements ICancellableWorkloadDriver
Implementation of the workload driver interface for open workloads
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.simucomframework.SimuComSimProcess
currentSessionId
-
-
Constructor Summary
Constructors Constructor Description OpenWorkload(SimuComModel model, IUserFactory userFactory, String interArrivalTime, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
Constructor of the open workload driver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancels the workload driver and prevents it from scheduling new demand.IUserFactory
getUserFactory()
protected void
internalLifeCycle()
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public IUserFactory getUserFactory()
- Specified by:
getUserFactory
in interfaceIWorkloadDriver
-
setInterarrivalTime
public void setInterarrivalTime(String newInterarrivalTime)
-
-