The source is used to create the flowitems that travel through a model. Each source creates one class of flowitem and can then assign properties such as itemtype or color to the flowitems it creates. Models should have at least one source in them. sources can create flowitems per an inter-arrival rate, per a scheduled arrival list, or simply from a defined arrival sequence.
Details
The source is a subclass of the FixedResource, although it does not receive flowitems. Instead it creates the flowitems and releases them. Hence it has no input section in its flow page. The source can operate in one of three possible modes:
- Inter-Arrivaltime Mode: In inter-arrivaltime mode, the source uses its inter-arrivaltime function. This function's return value is the time to wait till the next arrival of a flowitem. The source waits this amount of time, then creates a flowitem and releases it. Once the flowitem has exited, it calls the inter-arrivaltime function again and repeats the cycle. Note that the inter-arrivaltime is defined as the time between the exit of one item and arrival of the next item, not as the time between the arrival of one item and the arrival of the next item. If you would like to make the inter-arrivaltime be defined as the true time between arrivals, then use a downstream queue with a large capacity to make sure that the source immediately sends on flow items when they are created. You can also specify whether the inter-arrivaltime should be executed for the first arrival, or if the first flowitem should be created at time 0.
- Arrival Schedule Mode: In arrival schedule mode, the source follows a schedule defined by the user in the schedule table. Each row of the table specifies an arrival of flowitem(s) at a given time in the simulation. For each arrival entry, you can specify the arrival time, name, itemtype, number of items to create, and additional item labels for that arrival. The arrival times should be ordered correctly in the schedule table, meaning each entry's arrival time should be greater than or equal to the previous entry's arrival time. If the source is set to repeat the schedule, then it will immediately loop back on the first arrival after the last arrival, causing the first entry's arrival to happen at the exact same time as the last entry's arrival. Note here that, when repeating the schedule, the first entry's arrival time only applies to the very first loop through the schedule. This allows you to have an initial arrival time that is executed once, but not repeated. If you would like the source to wait a given amount of time between the last arrival and the repeated first arrival, then add an extra entry to the end of the table, give it an arrival time greater than the previous entry's arrival time, but have 0 flowitems arrive for that new entry.
- Arrival Sequence Mode: Arrival sequence mode is like arrival schedule mode, except that there is no time associated with the arrivals. The source will create the flowitems for a given table row, and then as soon as the last flowitem for that entry has exited, it will immediately go to the next row in the table. You can also repeat the arrival sequence.
States
Generating: There are no flowitems in the source. It is waiting until its next creation event to create flowitems.
Blocked: Flowitems have been created and are waiting to leave the source.
Properties pages
source
Flow
Triggers
Labels
General