1classdef (Sealed) SignalType
2 % Enumeration of signal types
for signal
classes.
4 % Copyright (c) 2012-2026, Imperial College London
8 NEGATIVE = 1; % Negative customer signal (removes jobs)
9 REPLY = 0; % Reply signal (triggers unblocking)
10 CATASTROPHE = 2; % Catastrophe signal (removes ALL jobs)
14 function text = toText(type)
17 case SignalType.NEGATIVE
21 case SignalType.CATASTROPHE
24 line_error(mfilename,
'Unrecognized signal type.');
28 function type = fromText(text)
29 % TYPE = FROMTEXT(TEXT)
35 type = SignalType.NEGATIVE;
37 type = SignalType.REPLY;
39 type = SignalType.CATASTROPHE;
41 line_error(mfilename,
'Unrecognized signal type text.');