LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
ServiceStrategy.m
1classdef (Sealed) ServiceStrategy
2 % Enumeration of service strategies
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 properties (Constant)
8 LI = 1; % LoadIndependent
9 LD = 2; % LoadDependent
10 CD = 3; % ClassDependent
11 SD = 4; % StateDependent
12 end
13
14 methods (Static)
15 function txt = toText(strategy)
16 switch strategy
17 case ServiceStrategy.LI
18 txt = 'LoadIndependent';
19 case ServiceStrategy.LD
20 txt = 'LoadDependent';
21 case ServiceStrategy.CD
22 txt = 'ClassDependent';
23 case ServiceStrategy.SD
24 txt = 'StateDependent';
25 otherwise
26 line_error(mfilename, 'Unrecognized service strategy.');
27 end
28 end
29 end
30
31 methods (Access = private)
32 function out = ServiceStrategy
33 % Prevent instantiation
34 end
35 end
36end