Entity Terminator
Terminate entities
Libraries:
SimEvents
Description
The Entity Terminator block accepts and destroys entities. Use this block to represent the entity departure from the model.
To customize actions when entities enter, use MATLAB® code in the Entry action
field of the Event
actions tab. See Events and Event Actions, for more information.
Examples
Generating and Initializing Entities
Different ways to generate and initialize entities and their attribute values.
M/M/1 Queuing System
Model a single-queue single-server system with a single traffic source and an infinite storage capacity. In the notation, the M stands for Markovian; M/M/1 means that the system has a Poisson arrival process, an exponential service time distribution, and one server. Queuing theory provides exact theoretical results for some performance measures of an M/M/1 queuing system and this model makes it easy to compare empirical results with the corresponding theoretical results.
Ports
Input
Port_1 — Input entity
scalar | vector | matrix
Input entity port for entities entering the terminator.
Data Types: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| Boolean
| enumerated
| bus
| fixed point
Output
Port_a — Number of entities arrived
scalar
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
Parameters
Event action — Specify the behavior of the entity in certain events
Entry
Specify the behavior of the entity in certain events. Define the behavior in the Event action parameter. The Entry action is called just after the entity entry to the block.
Programmatic Use
Block Parameter:
EntryAction |
Type: character vector |
Values: MATLAB code |
Default:
'' |
Number of entities arrived, a — Outputs the number of entities that have arrived at the block
off
(default) |
on
Number of entities that have arrived at the block.
Programmatic Use
Block Parameter:
NumberEntitiesArrived |
Type: character vector |
Values: 'on'
| 'off' |
Default:
'off' |
Version History
Introduced in R2016a
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)