1%{ @file sn_has_multi_class_fcfs.m
2 % @brief Checks
if the network has multi-
class FCFS stations
4 % @author LINE Development Team
8 % @brief Checks
if the network has multi-
class FCFS stations
11 % Returns
true if any FCFS station serves multiple job
classes.
15 %
bool = sn_has_multi_class_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 FCFS station
is multi-class
30function
bool = sn_has_multi_class_fcfs(sn)
32iset = find(sn.sched == SchedStrategy.FCFS);
35 bool = bool | sum(sn.rates(i,:)>0)>1;