Entity Batch Splitter
Split batch entities
Libraries:
SimEvents
Description
The Entity Batch Splitter block splits a batched entity into its individual entities and outputs each entity through the output port. A batched entity is the output of the Entity Batch Creator block.
To customize actions when entities enter, exit, and are blocked or unbatched, enter
MATLAB® code in the Entry action, Exit
action, Blocked action, or Unbatch
action field of the Event actions tab.
Examples
Group Entities Using Batching
Create, process, and split batched entities using Entity Batch Creator and Entity Batch Splitter blocks. In the model, an Entity Generator block is used to represent produced parts in a facility. The parts are batched by an Entity Batch Creator block. A batch is processed by an Entity Server block. When the processing is complete, the batch is split into individual parts by the Entity Batch Splitter block for their delivery.
Generating and Initializing Entities
Different ways to generate and initialize entities and their attribute values.
Optimization of Shared Resources in a Batch Production Process
Identify resource deficiencies and improve capacity planning in a system that shares resources.
Ports
Input
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
Output entity port for entities exiting the block.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | enumerated | bus | fixed point
Number of entities that have arrived at the block.
Dependencies
To enable this port, click the Statistics tab and select the box labeled Number of entities arrived, a.
Data Types: double
Number of entities that have departed the block.
Dependencies
To enable this port, click the Statistics tab and select the box labeled Number of entities departed, d.
Data Types: double
Number of entities still in the block that have yet to depart.
Dependencies
To enable this port, click the Statistics tab and select the box labeled Number of entities remaining to depart, rem.
Data Types: double
Selecting this check box outputs the value 1 for a
pending entity in the block, and 0 otherwise.
Dependencies
To enable this port, select the Statistics > Pending entity in block, pe.
Data Types: double
Parameters
Specify the behavior of the entity on certain events. For example, the
Entry action is called when the entity enters the
block. To customize actions when entities enter, exit, or are unbatched or
blocked, enter MATLAB code in the Entry action, Exit
action, Unbatch action, or Blocked
action field of the Event actions tab.
For more information about event actions, see Events and Event Actions. For an example, see Manage Entities Using Event Actions
Programmatic Use
Block Parameter:
EntryAction, UnbatchAction, ExitAction,
BlockedAction |
| Type: character vector |
| Values: MATLAB code |
Default:
'' |
Number of entities that have arrived at the block.
Programmatic Use
Block Parameter:
NumberOfEntitiesArrived |
| Type: character vector |
Values: 'on'
| 'off' |
Default:
'off' |
Selecting this check box outputs the number of entities that have exited the block.
Programmatic Use
Block Parameter:
NumberOfEntitiesDeparted |
| Type: character vector |
Values: 'on'
| 'off' |
Default:
'off' |
Outputs the number of entities still in the block that have yet to depart.
Programmatic Use
Block Parameter:
NumberOfEntitiesWaitingToDepart |
| Type: character vector |
Values: 'on'
| 'off' |
Default:
'off' |
Indicates whether an entity that is yet to depart is present in the block.
The value is 1 for a pending entity, and
0 otherwise.
Programmatic Use
Block Parameter:
PendingEntity |
| Type: character vector |
Values: 'on'
| 'off' |
Default:
'off' |
Version History
Introduced in R2016b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)


