EIn
- the entitiy which comes in the TranformerEEx
- the entity which leaves the Transformerpublic abstract class Transformer<EIn extends Entity,EEx extends Entity> extends Splitter<EIn,EEx> implements HasSuccessor<EEx>
Constructor and Description |
---|
Transformer(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 given times, initializes the queues and fills
the free service capacity queue.
|
Modifier and Type | Method and Description |
---|---|
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
|
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStartEvent
public Transformer(int incomingBufferQueueCapacity, int maxEntitiesToHandle, int parallelHandledEntities, NumericalDist<?> setupTime, NumericalDist<?> serviceTime, NumericalDist<?> recoveryTime, NumericalDist<?> transportTime, Model owner, java.lang.String name, boolean showInReport, boolean showInTrace)
incomingBufferQueueCapacity
- 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 void setSuccessor(Event<? super EEx> eventToScheduleWhenFinished)
HasSuccessor
setSuccessor
in interface HasSuccessor<EEx extends Entity>
eventToScheduleWhenFinished
- the event to be set as successor eventpublic void setSuccessor(HasPredecessor<? super EEx> successor)
HasSuccessor
setSuccessor
in interface HasSuccessor<EEx extends Entity>
successor
- the successor of the current station