prev_state¶
Syntax¶
Parameters¶
condition-name- The name of a condition defined in the model.
Returns¶
This action returns the index of the previous state of agent in the given condition.
Description¶
The states of each condition are numbered in the order they are defined in the
model, with Start always numbered 0 and Excluded always the last state in
the condition.
If the agent is in the Start state, then the value returned is 0.
If the agent is in the Excluded state, then the value returned is the index
of the Excluded state. That is, once an agent reaches the Excluded state,
no other history of the agent within the condition is available.
This action returns the index of the previous state of agent in the given condition.
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