-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathReconfigMethod.m
71 lines (65 loc) · 2.01 KB
/
ReconfigMethod.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
classdef ReconfigMethod < uint32
enumeration
Baseline(0);
Fastconfig(1);
FastconfigReserve(2);
Fastconfig1(3);
Fastconfig2(4);
Fastconfig1Reserve(5);
Fastconfig2Reserve(6);
% Periodically performing slice dimensioning
% Reconfiguring slice with the aim to reduce reconfiguration cost.
Dimconfig(11);
% Periodically performing slice dimensioning
% Reconfiguring slice with the aim to reduce reconfiguration cost.
% Compared with DIMCONFIG, this method further provides mechanisms, i.e., resource
% reservation and partial reconfiguration to reduce the amount of recofigurations.
DimconfigReserve(12);
DimconfigReserve0(13); % implicit resource reservation.
Dimconfig1(14);
Dimconfig2(15);
% Periodically performing slice dimensioning
% Reconfiguring slice without considering reconfiguration cost.
DimBaseline(101);
end
methods
function str = FullName(this)
str = this.char;
switch this
case ReconfigMethod.Baseline
str = 'Baseline Reconfiguration';
case ReconfigMethod.Fastconfig
str = 'Fast Reconfiguration';
case ReconfigMethod.FastconfigReserve
str = 'Fast Reconfiguration with Resource Reservation';
case ReconfigMethod.Fastconfig1
case ReconfigMethod.Fastconfig1Reserve
case ReconfigMethod.Fastconfig2
str = 'Fast Reconfiguration 2';
case ReconfigMethod.Fastconfig2Reserve
case ReconfigMethod.Dimconfig
str = 'Hybrid Slicing Scheme';
case ReconfigMethod.DimconfigReserve
str = 'Hybrid Slicing Scheme with Resource Reservation';
case ReconfigMethod.DimconfigReserve0
case ReconfigMethod.Dimconfig1
case ReconfigMethod.Dimconfig2
str = 'Hybrid Slicing Scheme 2';
case ReconfigMethod.DimBaseline
str = 'Baseline Reconfiguration With Dimensioning';
end
end
end
methods (Static)
function obj = Enumerate(str)
m = enumeration('ReconfigMethod');
for i = 1:length(m)
if m(i) == str
obj = m(i);
return;
end
end
error('error: unidentified entry.');
end
end
end