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