LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
sn_has_multi_class_heter_fcfs.m
1%{ @file sn_has_multi_class_heter_fcfs.m
2 % @brief Checks for multi-class FCFS with heterogeneous service
3 %
4 % @author LINE Development Team
5%}
6
7%{
8 % @brief Checks for multi-class FCFS with heterogeneous service
9 %
10 % @details
11 % Returns true if any FCFS station serves multiple classes with different service time distributions.
12 %
13 % @par Syntax:
14 % @code
15 % bool = sn_has_multi_class_heter_fcfs(sn)
16 % @endcode
17 %
18 % @par Parameters:
19 % <table>
20 % <tr><th>Name<th>Description
21 % <tr><td>sn<td>Network structure
22 % </table>
23 %
24 % @par Returns:
25 % <table>
26 % <tr><th>Name<th>Description
27 % <tr><td>bool<td>True if any multi-class FCFS station has heterogeneous service
28 % </table>
29%}
30function bool = sn_has_multi_class_heter_fcfs(sn)
31
32iset = find(sn.sched == SchedStrategy.FCFS);
33if isempty(iset)
34 bool = false;
35else
36 bool = false;
37 for i=iset(:)'
38 bool = bool | range([sn.rates(i,:)])>0;
39 end
40end
41end