LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
DropStrategy.m
1classdef (Sealed) DropStrategy
2 % Enumeration of drop policies in stations.
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 properties (Constant)
8 WAITQ = -1;
9 DROP = 1;
10 BAS = 2;
11 end
12
13 methods (Static)
14 function text = toText(type)
15 % TEXT = TOTEXT(TYPE)
16 switch type
17 case DropStrategy.WAITQ
18 text = 'waiting queue';
19 case DropStrategy.DROP
20 text = 'drop';
21 case DropStrategy.BAS
22 text = 'BAS blocking';
23 otherwise
24 line_error(mfilename, 'Unrecognized drop strategy type.');
25 end
26 end
27 end
28end
29
30