1%{ @file sn_set_servers.m
2 % @brief Sets the number of servers at a station
4 % @author LINE Development Team
8 % @brief Sets the number of servers at a station
11 % Directly modifies the server count in NetworkStruct.
15 % sn = sn_set_servers(sn, stationIdx, nServers)
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)
28 % <tr><th>Name<th>Description
29 % <tr><td>sn<td>Modified network structure
32function sn = sn_set_servers(sn, stationIdx, nServers)
34sn.nservers(stationIdx) = nServers;