EIn - the entity which comes in the TransformerEEx - the entity which leaves the Transformerpublic abstract class Merger<EIn extends Entity,EEx extends Entity> extends Station<EIn> implements HasPredecessor<EIn>, HasSuccessor<EEx>
| Constructor and Description |
|---|
Merger(MergerConfig<EIn> mergerConfig,
int incomingBufferQueueCapacity,
int maxEntitiesToHandle,
int parallelHandledEntities,
NumericalDist<?> setupTime,
NumericalDist<?> serviceTime,
NumericalDist<?> recoveryTime,
NumericalDist<?> transportTime,
Model owner,
java.lang.String name,
boolean showInReport,
boolean showInTrace)
This Constructor sets the mergerconfig, the given times, initializes the queues and fills the free service capacity queue.
|
| Modifier and Type | Method and Description |
|---|---|
Event<EIn> |
getStartEvent()
returns the Startevent of the Merger
|
void |
setSuccessor(Event<? super EEx> eventToScheduleWhenFinished)
This method is used to set the successor event
|
void |
setSuccessor(HasPredecessor<? super EEx> successor)
This method is used to set the successor event
|
getCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, reset, resetAt, setCorrespondingSchedulable, setDescription, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic Merger(MergerConfig<EIn> mergerConfig, int incomingBufferQueueCapacity, int maxEntitiesToHandle, int parallelHandledEntities, NumericalDist<?> setupTime, NumericalDist<?> serviceTime, NumericalDist<?> recoveryTime, NumericalDist<?> transportTime, Model owner, java.lang.String name, boolean showInReport, boolean showInTrace)
mergerConfig - the Mergerconfig which holds the required entities and ratiosincomingBufferQueueCapacity - the capatiy of the income queuemaxEntitiesToHandle - the number of max entities the station can handleparallelHandledEntities - the number of max parallel entities a station can handlesetupTime - the time the station needs to set upserviceTime - 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 Event<EIn> getStartEvent()
getStartEvent in interface HasPredecessor<EIn extends Entity>getStartEvent in class Station<EIn extends Entity>public void setSuccessor(Event<? super EEx> eventToScheduleWhenFinished)
HasSuccessorsetSuccessor in interface HasSuccessor<EEx extends Entity>eventToScheduleWhenFinished - the event to be set as successor eventpublic void setSuccessor(HasPredecessor<? super EEx> successor)
HasSuccessorsetSuccessor in interface HasSuccessor<EEx extends Entity>successor - the successor of the current station