Main Content

Composite Entity Creator

Create composite entities

  • Composite Entity Creator block

Libraries:
SimEvents

Description

The Composite Entity Creator block creates a composite entity for each set of entities arriving simultaneously at all input ports. The newly created entity can include information about the structure, attributes, and timers of the arriving entities.

You can combine entities from different paths using this block. The combined entity represents different parts within a larger item, such as the header, payload, and trailer that are parts of a data packet. Alternatively, you can model resource allocation by combining an entity that represents a resource with an entity that represents a part or other item.

The Composite Entity Creator block detects when all necessary component entities are present and when the composite entity that results from the combining operation will be able to advance to the next block. You can also configure the Composite Entity Creator block to make the combining operation reversible via the Composite Entity Splitter block.

Ports

Input

expand all

Input entity port for entities entering the block.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean | enumerated | bus | fixed point

Input entity port for entities entering the block.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | enumerated | bus | fixed point

Output

expand all

Output entity port for composite entities exiting the clock.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | enumerated | bus | fixed point

Parameters

expand all

Specify the number of input ports to create the composite entity.

Programmatic Use

Block Parameter: NumberInputPorts
Type: character vector
Values: '2' | scalar
Default: '2'

Specify the type name of the composite entity that is created after combining incoming entities.

Programmatic Use

Block Parameter: EntityTypeName
Type: character vector
Values: 'Combined' | character vector
Default: 'Combined'

Specify whether to output the composite entity as a bus object.

Programmatic Use

Block Parameter: BusObject
Type: character vector
Values: 'on' | 'off'
Default: 'off'

Names of the entities in the composite entity.

Programmatic Use

Block Parameter: InputEntityName
Type: character vector
Values: 'E1|E2' | character vector
Default: 'E1|E2'

Version History

Introduced in R2016a