get_contact_rate¶
Syntax¶
Parameters¶
condition_name- The name of a condition.
Returns¶
The contact rate of a condition.
Description¶
This action searches a condition for transmissible agents and returns the contact rate of the condition.
Examples¶
This example reduces the contact rate for influenza to half of its initial value and prints the new contact rate.
condition FOO {
group_start_state = Group_Start
state Group_Start {
if (is_group_agent(County)) {
adjust_contacts(0.5)
}
if (is_group_agent(County)) {
print(get_contact_rate(INF))
}
wait(0)
default(Excluded)
}
}
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