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 JD = 5; % JointDependent
13 end
14
15 methods (Static)
16 function txt = toText(strategy)
17 switch strategy
18 case ServiceStrategy.LI
19 txt = 'LoadIndependent';
20 case ServiceStrategy.LD
21 txt = 'LoadDependent';
22 case ServiceStrategy.CD
23 txt = 'ClassDependent';
24 case ServiceStrategy.SD
25 txt = 'StateDependent';
26 case ServiceStrategy.JD
27 txt = 'JointDependent';
28 otherwise
29 line_error(mfilename, 'Unrecognized service strategy.');
30 end
31 end
32 end
33
34 methods (Access = private)
35 function out = ServiceStrategy
36 % Prevent instantiation
37 end
38 end
39end