EIn - the entitiy which comes in the splitterEEx - the entity which leaves the splitterpublic abstract class SplitterOutput<EIn extends Entity,EEx extends Entity> extends java.lang.Object implements HasSuccessor<EEx>
| Constructor and Description |
|---|
SplitterOutput(Model owner,
java.lang.String name,
int numberOfOutputPartsPerOriginalEntity,
NumericalDist<?> transportTime)
Constructor to create a Splitteroutput which can be added to an List
which than can passed to the Splitter
|
| Modifier and Type | Method and Description |
|---|---|
abstract EEx |
createOutputEntity(EIn originalEntity)
This Method has to be overridden by the user to set the output entity
|
int |
getNumberOfOutputPartsPerOriginalEntity()
gets the number of parts
|
Event<? super EEx> |
getSuccessorEvent()
gets the succsessor event which has been set by the user
|
TimeSpan |
getTransportTime()
gets the transport time of the station
|
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
|
public SplitterOutput(Model owner, java.lang.String name, int numberOfOutputPartsPerOriginalEntity, NumericalDist<?> transportTime)
numberOfOutputPartsPerOriginalEntity - the number of output parts of this outputtransportTime - the transport time of this outputpublic 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 stationpublic abstract EEx createOutputEntity(EIn originalEntity)
originalEntity - reference to the original entitypublic int getNumberOfOutputPartsPerOriginalEntity()
public Event<? super EEx> getSuccessorEvent()
public TimeSpan getTransportTime()