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
9 REPLY = 0; % Reply signal
13 function text = toText(type)
16 case SignalType.NEGATIVE
21 line_error(mfilename,
'Unrecognized signal type.');
25 function type = fromText(text)
26 % TYPE = FROMTEXT(TEXT)
32 type = SignalType.NEGATIVE;
34 type = SignalType.REPLY;
36 line_error(mfilename,
'Unrecognized signal type text.');