Struct Event¶
template <typename TSeq>
Event data for update an agent.More...
#include <config.hpp>
Public Attributes¶
| Type | Name |
|---|---|
| EventAction | action |
| Agent< TSeq > * | agent |
| Entity< TSeq > * | entity |
| epiworld_fast_int | new_state |
| epiworld_fast_int | queue |
| ToolPtr< TSeq > | tool |
| VirusPtr< TSeq > | virus |
Public Functions¶
| Type | Name |
|---|---|
| Event (Agent< TSeq > * agent_, VirusPtr< TSeq > & virus_, ToolPtr< TSeq > & tool_, Entity< TSeq > * entity_, epiworld_fast_int new_state_, epiworld_fast_int queue_, EventAction action_) Construct a new Event object. |
Detailed Description¶
Template parameters:
TSeq
Public Attributes Documentation¶
variable action¶
variable agent¶
variable entity¶
variable new_state¶
variable queue¶
variable tool¶
variable virus¶
Public Functions Documentation¶
function Event¶
Construct a new Event object.
inline Event::Event (
Agent < TSeq > * agent_,
VirusPtr < TSeq > & virus_,
ToolPtr < TSeq > & tool_,
Entity < TSeq > * entity_,
epiworld_fast_int new_state_,
epiworld_fast_int queue_,
EventAction action_
)
All the parameters are rather optional.
Parameters:
agent_Agent over who the action will happenvirus_Virus to addtool_Tool to addvirus_idxIndex of virus to be removed (if needed)tool_idxIndex of tool to be removed (if needed)new_state_Next statequeue_Efect on the queueaction_The action to execute
The documentation for this class was generated from the following file epiworld-src/include/epiworld/config.hpp