Package jasima.shopSim.core
Class StaticJobSource
- java.lang.Object
-
- jasima.core.simulation.SimComponentBase
-
- jasima.shopSim.core.JobSource
-
- jasima.shopSim.core.StaticJobSource
-
- All Implemented Interfaces:
SimComponent,SimLifecycleListener,SimOperations,Notifier<SimComponent,SimComponent.SimComponentEvent>,NotifierListener<Simulation,Simulation.SimLifecycleEvent>,ValueStore,Cloneable
public class StaticJobSource extends JobSource
A job source which generates jobs from a static set of job descriptions (StaticJobSource.JobSpec).- Author:
- Torsten Hildebrandt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStaticJobSource.JobSpec-
Nested classes/interfaces inherited from interface jasima.core.simulation.SimComponent
SimComponent.ProduceResultsEvent, SimComponent.SimComponentEvent, SimComponent.SimComponentLifeCycleMessage
-
Nested classes/interfaces inherited from interface jasima.core.simulation.SimLifecycleListener
SimLifecycleListener.DoneListener, SimLifecycleListener.OtherListener, SimLifecycleListener.ResetStatsListener, SimLifecycleListener.ResultsListener, SimLifecycleListener.SimEndListener, SimLifecycleListener.SimInitialized, SimLifecycleListener.SimStartListener
-
Nested classes/interfaces inherited from interface jasima.core.simulation.util.SimOperations
SimOperations.SimEventType
-
-
Field Summary
Fields Modifier and Type Field Description StaticJobSource.JobSpec[]jobsintnextJob-
Fields inherited from class jasima.shopSim.core.JobSource
ARRIVE_PRIO, index, jobsStarted, stopArrivals
-
Fields inherited from class jasima.core.simulation.SimComponentBase
sim
-
Fields inherited from interface jasima.core.simulation.SimComponent
NAME_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description StaticJobSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobcreateNextJob()voidinit()-
Methods inherited from class jasima.shopSim.core.JobSource
clone, getShop, newJobInstance, setShop
-
Methods inherited from class jasima.core.simulation.SimComponentBase
getHierarchicalName, getName, getParent, getSim, isInitialized, notifierImpl, setInitialized, setName, setNameInternal, setParent, setSim, toString, valueStoreImpl
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jasima.core.util.observer.Notifier
addListener, addListener, addListener, fire, fire, getListener, numListener, removeCurrentListener, removeListener
-
Methods inherited from interface jasima.core.simulation.SimComponent
addChild, addComponent, addResult, containsChild, done, getByHierarchicalName, getChild, getChildByName, getChildren, handleOther, inform, isValidName, numChildren, produceResults, removeChild, removeChildren, resetStats, simEnd, simStart
-
Methods inherited from interface jasima.core.simulation.util.SimOperations
activateEntity, currentPrio, end, getRootComponent, initRndGen, initRndGen, isEndRequested, isTraceEnabled, schedule, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, schedulePeriodically, schedulePeriodically, scheduleProcess, scheduleProcess, simTime, simTimeAbs, simTimeToInstant, toSimTime, toSimTime, toSimTime, trace
-
Methods inherited from interface jasima.core.util.ValueStore
valueStoreContains, valueStoreGet, valueStoreGet, valueStoreGetAllKeys, valueStoreGetNumKeys, valueStorePut, valueStoreRemove, valueStoreUpdate
-
-
-
-
Field Detail
-
nextJob
public int nextJob
-
jobs
public StaticJobSource.JobSpec[] jobs
-
-
Method Detail
-
init
public void init()
- Specified by:
initin interfaceSimComponent- Specified by:
initin interfaceSimLifecycleListener- Overrides:
initin classJobSource
-
createNextJob
public Job createNextJob()
- Specified by:
createNextJobin classJobSource
-
-