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 SysQLen = 10;
19 SysRespT = 11;
20 SysTput = 12;
21 Tput = 13;
22 ArvR = 14;
23 TputSink = 15;
24 Util = 16;
25 TranQLen = 17;
26 TranUtil = 18;
27 TranTput = 19;
28 TranRespT = 20;
29 Tard = 21;
30 SysTard = 22;
31 end
32
33 methods (Static)
34 function txt = toText(metricId)
35 switch metricId
36 case MetricType.ResidT
37 txt = 'Residence Time';
38 case MetricType.RespT
39 txt = 'Response Time';
40 case MetricType.DropRate
41 txt = 'Drop Rate';
42 case MetricType.QLen
43 txt = 'Number of Customers';
44 case MetricType.QueueT
45 txt = 'Queue Time';
46 case MetricType.FCRWeight
47 txt = 'FCR Total Weight';
48 case MetricType.FCRMemOcc
49 txt = 'FCR Memory Occupation';
50 case MetricType.FJQLen
51 txt = 'Fork Join Number of Customers';
52 case MetricType.FJRespT
53 txt = 'Fork Join Response Time';
54 case MetricType.RespTSink
55 txt = 'Response Time per Sink';
56 case MetricType.SysQLen
57 txt = 'System Number of Customers';
58 case MetricType.SysRespT
59 txt = 'System Response Time';
60 case MetricType.SysTput
61 txt = 'System Throughput';
62 case MetricType.Tput
63 txt = 'Throughput';
64 case MetricType.ArvR
65 txt = 'Arrival Rate';
66 case MetricType.TputSink
67 txt = 'Throughput per Sink';
68 case MetricType.Util
69 txt = 'Utilization';
70 case MetricType.TranQLen
71 txt = 'Tran Number of Customers';
72 case MetricType.TranUtil
73 txt = 'Tran Utilization';
74 case MetricType.TranTput
75 txt = 'Tran Throughput';
76 case MetricType.TranRespT
77 txt = 'Tran Response Time';
78 case MetricType.Tard
79 txt = 'Tardiness';
80 case MetricType.SysTard
81 txt = 'System Tardiness';
82 otherwise
83 txt = 'Unknown Metric';
84 end
85 end
86 end
87end