LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
sn_set_servers.m
1%{ @file sn_set_servers.m
2 % @brief Sets the number of servers at a station
3 %
4 % @author LINE Development Team
5%}
6
7%{
8 % @brief Sets the number of servers at a station
9 %
10 % @details
11 % Directly modifies the server count in NetworkStruct.
12 %
13 % @par Syntax:
14 % @code
15 % sn = sn_set_servers(sn, stationIdx, nServers)
16 % @endcode
17 %
18 % @par Parameters:
19 % <table>
20 % <tr><th>Name<th>Description
21 % <tr><td>sn<td>Network structure
22 % <tr><td>stationIdx<td>Station index (1-based)
23 % <tr><td>nServers<td>Number of servers (positive, or Inf)
24 % </table>
25 %
26 % @par Returns:
27 % <table>
28 % <tr><th>Name<th>Description
29 % <tr><td>sn<td>Modified network structure
30 % </table>
31%}
32function sn = sn_set_servers(sn, stationIdx, nServers)
33
34sn.nservers(stationIdx) = nServers;
35
36end