E
- The Entitiy which is created by the sourcepublic abstract class Source<E extends Entity> extends Station<E> implements HasSuccessor<E>
Constructor and Description |
---|
Source(int maxEntitiesToProduce,
int parallelProducedEntities,
NumericalDist<?> setupTime,
NumericalDist<?> productionTime,
NumericalDist<?> recoveryTime,
NumericalDist<?> transportTime,
Model owner,
java.lang.String name,
boolean showInReport,
boolean showInTrace)
This Constructor sets the given times, initializes the queues and fills the free service capacity queue.
|
Modifier and Type | Method and Description |
---|---|
void |
setSuccessor(Event<? super E> eventToScheduleWhenFinished)
This method is used to set the successor event
|
void |
setSuccessor(HasPredecessor<? super E> successor)
This method is used to set the successor event
|
void |
startCreatingEntities()
The source starts with creating entities if this method is not called previously.
|
getStartEvent
getCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, reset, resetAt, setCorrespondingSchedulable, setDescription, setReporter
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public Source(int maxEntitiesToProduce, int parallelProducedEntities, NumericalDist<?> setupTime, NumericalDist<?> productionTime, NumericalDist<?> recoveryTime, NumericalDist<?> transportTime, Model owner, java.lang.String name, boolean showInReport, boolean showInTrace)
maxEntitiesToProduce
- the number of max entities the station can handleparallelProducedEntities
- the number of max parallel entities a station can handlesetupTime
- the time the station needs to set upproductionTime
- the time the station needs for the servicerecoveryTime
- the time the station needs tor recovertransportTime
- the time the station needs to transport the entitiy to the next stationowner
- the model ownername
- the name of the stationshowInReport
- should this construct be in the reportshowInTrace
- should this construct be in the tracepublic void setSuccessor(Event<? super E> eventToScheduleWhenFinished)
HasSuccessor
setSuccessor
in interface HasSuccessor<E extends Entity>
eventToScheduleWhenFinished
- the event to be set as successor eventpublic void setSuccessor(HasPredecessor<? super E> successor)
HasSuccessor
setSuccessor
in interface HasSuccessor<E extends Entity>
successor
- the successor of the current stationpublic void startCreatingEntities()