The create block generates new entities.
It executes an internal transition depending on the inter-arrival times defined by the probability distribution selected as a parameter. The output function sends the new entity to the next block, and the internal transition function generates the new entity that will be sent in the next transition.
If the block has its input port connected, the external transitions generate the new entities and an inmediate internal transition is forced in order to send them. In this case, entities are only generated at external events.
Each generated entity has a unique serial number. In order to generate an entity with the correct serial number, the create block receives a reference to a global variable (PSNumberIn) that stores the total number of generated entities. When the block creates a new entity, the value of that global variable is increased allowing other create blocks to notice that a new entity has been generated. The PSNumberIn variable is declared as inner and initialized in the Draft model.
Name | Description |
---|---|
create | |
int | Internal Transition Function |
ext | External Transition Function |
out | Output Function |
ta | Time Advance Function |
st | |
initst |