LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
PollingType.m
1classdef (Sealed) PollingType
2 % Enumeration of polling service types
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 properties (Constant)
8 GATED = 0;
9 EXHAUSTIVE = 1;
10 KLIMITED = 2;
11 end
12
13 methods (Static)
14 function text = toText(type)
15 % TEXT = TOTEXT(TYPE)
16 switch type
17 case PollingType.GATED
18 text = 'Gated';
19 case PollingType.EXHAUSTIVE
20 text = 'Exhaustive';
21 case PollingType.KLIMITED
22 text = 'K-Limited';
23 end
24 end
25
26 function id = toId(type)
27 % ID = TOID(TYPE)
28 id = type;
29 end
30 end
31end