get_state¶
Syntax¶
Parameters¶
condition_name- The name of a condition defined in the model.
state_name- The name of a state within the condition.
Returns¶
Returns an integer representing the state's index in the given condition.
Description¶
This action returns an integer representing the state's index in the given
condition. It can be used in conjunction with other actions like
current_state to construct predicates to enable executing different actions
depending on an agent's current state.
Examples¶
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