1classdef (Sealed) ServiceStrategy
2 % Enumeration of service strategies
4 % Copyright (c) 2012-2026, Imperial College London
8 LI = 1; % LoadIndependent
9 LD = 2; % LoadDependent
10 CD = 3; % ClassDependent
11 SD = 4; % StateDependent
12 JD = 5; % JointDependent
16 function txt = toText(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';
29 line_error(mfilename,
'Unrecognized service strategy.');
34 methods (Access =
private)
35 function out = ServiceStrategy
36 % Prevent instantiation