1%{ @file sn_has_multi_class_heter_fcfs.m
2 % @brief Checks
for multi-
class FCFS with heterogeneous service
4 % @author LINE Development Team
8 % @brief Checks
for multi-
class FCFS with heterogeneous service
11 % Returns
true if any FCFS station serves multiple
classes with different service time distributions.
15 %
bool = sn_has_multi_class_heter_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 service
30function
bool = sn_has_multi_class_heter_fcfs(sn)
32iset = find(sn.sched == SchedStrategy.FCFS);
37 for idx=1:length(iset)
39 ratesRow = sn.rates(i,:);
40 ratesRow = ratesRow(isfinite(ratesRow) & ~isnan(ratesRow));
41 bool =
bool | (max(ratesRow) - min(ratesRow)) > 0;