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
15 function txt = toText(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';
26 line_error(mfilename,
'Unrecognized service strategy.');
31 methods (Access =
private)
32 function out = ServiceStrategy
33 % Prevent instantiation