was_exposed_externally¶
Syntax¶
Parameters¶
condition- A transmissible condition within the model.
Returns¶
Returns 1 (true) if the current agent was exposed to the given condition by an importation event, typically by the meta agent. Otherwise, this returns 0 (false).
Description¶
Determine whether the agent was exposed to a given condition by an importation event or as part of the simulation.
Examples¶
This example checks if the current agent was exposed to a transmissible condition Flu externally, and if so sends them to a ImportedAgent state.
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