1%{ @file sn_is_population_model.m
2 % @brief Checks
if the network
is defined by populations
4 % @author LINE Development Team
8 % @brief Checks
if the network
is defined by populations
11 % Returns
true if the model
is specified
using population values rather than arrival rates.
15 %
bool = sn_is_population_model(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 model
is population-based
30function
bool = sn_is_population_model(sn)
32bool = all(sn.sched==SchedStrategy.INF | sn.sched==SchedStrategy.PS ...
33 | sn.sched==SchedStrategy.PSPRIO | sn.sched==SchedStrategy.DPS ...
34 | sn.sched==SchedStrategy.GPS | sn.sched==SchedStrategy.GPSPRIO ...
35 | sn.sched==SchedStrategy.DPSPRIO | sn.sched==SchedStrategy.EXT);
36bool =
bool & ~sn_has_priorities(sn);
37bool =
bool & ~sn_has_fork_join(sn);