1%{ @file sn_has_homogeneous_scheduling.m
2 % @brief Checks
if all stations use the same scheduling policy
4 % @author LINE Development Team
8 % @brief Checks
if all stations use the same scheduling policy
11 % Returns
true if all stations in the network use identical scheduling policies.
15 %
bool = sn_has_homogeneous_scheduling(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 all stations use the same scheduling policy
30function
bool = sn_has_homogeneous_scheduling(sn, strategy)
32bool = length(findstring(sn.sched,strategy)) == sn.nstations;