get_number_of_transmissibles¶
Syntax¶
Parameters¶
condition_name- The name of the condition that is to be searched for transmissible agents.
Returns¶
The number of transmissible agents in the group agent's group.
Description¶
This action must be called by a group agent. It returns the number of transmissible agents of that condtion_name within the calling agent's group, regardless of whether they are attending or not attending of the group during the simulation day.
Examples¶
Let GroupSpin be a state in which a group agent has entered, and TransmissionCond be a condition in which transmissible agents exist. The following snippet would print the number of transmissible agents once per day:
state GroupSpin {
print("Number of transmissibles: ", get_number_of_transmissibles(TransmissionCond))
wait(24)
default(GroupSpin)
}
See Also¶
- adjust_contacts
- clear_transmissible_agents
- contact_prob
- contact_rate
- current_state
- enable_transmission_bias
- exposed_state
- get_contact_rate
- get_number_of_transmissibles
- get_state
- get_transmissibility
- get_transmissible_list
- import_exposures
- prev_state
- set_sus
- set_trans
- source
- sus_list
- transmission_mode
- transmission_network_name
- transmissions
- transmit
- was_exposed_externally
- was_exposed_in