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 BBS = 3;
12 RSRD = 4;
13 RETRIAL = 5; % Job moves to orbit and retries after delay (unlimited attempts)
14 RETRIAL_WITH_LIMIT = 6; % Job retries up to max attempts, then drops
15 end
16
17 methods (Static)
18 function text = toText(type)
19 % TEXT = TOTEXT(TYPE)
20 switch type
21 case DropStrategy.WAITQ
22 text = 'waiting queue';
23 case DropStrategy.DROP
24 text = 'drop';
25 case DropStrategy.BAS
26 text = 'BAS blocking';
27 case DropStrategy.BBS
28 text = 'BBS blocking';
29 case DropStrategy.RSRD
30 text = 'RSRD blocking';
31 case DropStrategy.RETRIAL
32 text = 'retrial';
33 case DropStrategy.RETRIAL_WITH_LIMIT
34 text = 'retrial with limit';
35 otherwise
36 line_error(mfilename, 'Unrecognized drop strategy type.');
37 end
38 end
39 end
40end
41
42