LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
sn_has_setf.m
1%{ @file sn_has_setf.m
2 % @brief Checks if the network uses SETF scheduling
3 %
4 % @author LINE Development Team
5%}
6
7%{
8 % @brief Checks if the network uses SETF scheduling
9 %
10 % @details
11 % Returns true if any station in the network uses Shortest Elapsed Time First
12 % (SETF) scheduling. SETF is the non-preemptive version of FB/LAS scheduling.
13 %
14 % @par Syntax:
15 % @code
16 % bool = sn_has_setf(sn)
17 % @endcode
18 %
19 % @par Parameters:
20 % <table>
21 % <tr><th>Name<th>Description
22 % <tr><td>sn<td>Network structure
23 % </table>
24 %
25 % @par Returns:
26 % <table>
27 % <tr><th>Name<th>Description
28 % <tr><td>bool<td>True if any station uses SETF scheduling
29 % </table>
30%}
31function bool = sn_has_setf(sn)
32
33bool = any(sn.sched==SchedStrategy.SETF);
34end