1%{ @file sn_has_multi_class_heter_exp_fcfs.m
2 % @brief Checks
for multi-
class FCFS with heterogeneous exponential service
4 % @author LINE Development Team
8 % @brief Checks
for multi-
class FCFS with heterogeneous exponential service
11 % Returns
true if any FCFS station serves multiple
classes with different exponential service times.
15 %
bool = sn_has_multi_class_heter_exp_fcfs(sn)
20 % <tr><th>Name<th>Description
21 % <tr><td>sn<td>Network structure
26 % <tr><th>Name<th>Description
27 % <tr><td>bool<td>True
if any multi-class FCFS station has heterogeneous exponential service
30function
bool = sn_has_multi_class_heter_exp_fcfs(sn)
31% Checks if the network has one or more stations with multiclass heterogeneous FCFS
32% and exponential service times
35% sn - NetworkStruct object for the queueing network model
38% bool - true if network has multiclass heterogeneous FCFS with exponential service
41iset = find(sn.sched == SchedStrategy.FCFS);
48 % Check if rates vary across classes (heterogeneous)
49 if range(sn.rates(i,:)) > 0
50 % Check if all SCVs are ~1 (exponential)
52 if max(scvs) < 1 + GlobalConstants.FineTol && ...
53 min(scvs) > 1 - GlobalConstants.FineTol