1classdef (Sealed) DepartureDiscipline
2 % Departure disciplines
for the depository of a queueing place (QPN semantics).
4 % A queueing place serves tokens in its embedded queue and, on service
5 % completion, moves them to a depository from which they become available to
6 %
the output transitions. The departure discipline governs
the order in which
7 % depository tokens become available.
9 % Copyright (c) 2012-2026, Imperial College London
10 % All rights reserved.
13 NORMAL = 0; % Tokens available immediately upon service completion (standard QPN)
14 FIFO = 1; % Tokens available in their order of arrival to
the depository
18 function text = toText(type)
21 case DepartureDiscipline.NORMAL
23 case DepartureDiscipline.FIFO
26 line_error(mfilename,
'Unrecognized departure discipline type.');