LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
MetricType.m
1classdef (Sealed) MetricType
2 % An output metric of a Solver, such as a performance index
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 properties (Constant)
8 ResidT = 0;
9 RespT = 1;
10 DropRate = 2;
11 QLen = 3;
12 QueueT = 4;
13 FCRWeight = 5;
14 FCRMemOcc = 6;
15 FJQLen = 7;
16 FJRespT = 8;
17 RespTSink = 9;
18 SysDropR = 10;
19 SysQLen = 11;
20 SysPower = 12;
21 SysRespT = 13;
22 SysTput = 14;
23 Tput = 15;
24 ArvR = 16;
25 TputSink = 17;
26 Util = 18;
27 TranQLen = 19;
28 TranUtil = 20;
29 TranTput = 21;
30 TranRespT = 22;
31 Trdn = 23;
32 SysTrdn = 24;
33 end
34
35 methods (Static)
36 function txt = toText(metricId)
37 switch metricId
38 case MetricType.ResidT
39 txt = 'Residence Time';
40 case MetricType.RespT
41 txt = 'Response Time';
42 case MetricType.DropRate
43 txt = 'Drop Rate';
44 case MetricType.QLen
45 txt = 'Number of Customers';
46 case MetricType.QueueT
47 txt = 'Queue Time';
48 case MetricType.FCRWeight
49 txt = 'FCR Total Weight';
50 case MetricType.FCRMemOcc
51 txt = 'FCR Memory Occupation';
52 case MetricType.FJQLen
53 txt = 'Fork Join Number of Customers';
54 case MetricType.FJRespT
55 txt = 'Fork Join Response Time';
56 case MetricType.RespTSink
57 txt = 'Response Time per Sink';
58 case MetricType.SysDropR
59 txt = 'System Drop Rate';
60 case MetricType.SysQLen
61 txt = 'System Number of Customers';
62 case MetricType.SysPower
63 txt = 'System Power';
64 case MetricType.SysRespT
65 txt = 'System Response Time';
66 case MetricType.SysTput
67 txt = 'System Throughput';
68 case MetricType.Tput
69 txt = 'Throughput';
70 case MetricType.ArvR
71 txt = 'Arrival Rate';
72 case MetricType.TputSink
73 txt = 'Throughput per Sink';
74 case MetricType.Util
75 txt = 'Utilization';
76 case MetricType.TranQLen
77 txt = 'Tran Number of Customers';
78 case MetricType.TranUtil
79 txt = 'Tran Utilization';
80 case MetricType.TranTput
81 txt = 'Tran Throughput';
82 case MetricType.TranRespT
83 txt = 'Tran Response Time';
84 case MetricType.Trdn
85 txt = 'Tardiness';
86 case MetricType.SysTrdn
87 txt = 'System Tardiness';
88 otherwise
89 txt = 'Unknown Metric';
90 end
91 end
92 end
93end