Entity Selector
Select entities
Libraries:
SimEvents
Description
The Entity Selector block matches attribute values of entities selected from multiple input entity streams to the attribute values of a key entity. You can use this block for modeling scenarios that involve matching items based on input. For instance, you can model a facility that produces parts that are matched to the reference order represented by the key entity.
The block accepts a key entity represented by the Key entity attribute name parameter. This parameter holds the attribute against which the attributes of all other input entity streams are evaluated. The Matching entity attribute name(s) parameter contains one or more attributes belonging to the entity streams. The block checks for a successful match by comparing the attribute values specified for these two parameters. When a match is found across all entity streams, the set of matching entities and the key entity are ready to depart.
The Entity Store block can be used as a temporary container for ready-to-leave entities to be selected by the Entity Selector block. For example, see Match Entities Based on Attributes.
Examples
Ports
Input
Output
Parameters
Version History
Introduced in R2018a



