Generate Entities
SimEvents
The Entity Generator block generates entities. Entities are discrete items of interest that you can define in a discrete-event simulation. An entity can carry scalar, bus, or vector data. The meaning of an entity depends on the model. Entity can represent customers in a queuing system, data packets from a remote controller to an actuator, or any discrete item you define.
By default the block entity generation method is
Time-based
. In this method, the block generates entities
using intergeneration times specified by the Period, from an input
signal or statistical distribution. See Entities in a SimEvents Model, for more information about creating
time-based and randomized entities.
The block also creates event-based entities. Choose
Event-based
as the Generation Method
for an external event to specify the entity intergeneration time. For an example, see
Generate Entities When Events Occur.
To customize actions when the entity is generated or it exits the block, in the
Event actions tab, in the Generate action
,
or Exit action
field, enter MATLAB® code. For more information, see Events and Event Actions.
Composite Entity Creator | Composite Entity Splitter | Discrete Event Chart | Entity Gate | Entity Input Switch | Entity Multicast | Entity Multicast | Entity Output Switch | Entity Queue | Entity Server | Multicast Receive Queue