Class: matlab.DiscreteEventSystem
Package: matlab

Define first-in first-out (FIFO) queue storage




storage=queueFIFO(entityType,capacity) defines a FIFO queue storage element. Use this function when implementing the getEntityStorageImpl method.

Input Arguments

expand all

Type of entities that the new storage element works with.

Maximum number of entities that the storage can contain, specified as a double.

Output Arguments

expand all

Queue storage that contains entities and sorts them in FIFO order.


expand all

Specify FIFO queue entity storage for the discrete-event system object.

% Define a storage element as a FIFO queue
% - Entities in the queue are sorted in First-In-First-Out (FIFO) order
% - Queue can store entities of type 'myEntity'
% - Queue can store no more than 25 entities
storage = obj.queueFIFO('myEntity', 25); 

Introduced in R2016a