Skip to content

Struct Event

template <typename TSeq>

ClassList > Event

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

EventAction Event< TSeq >::action;

variable agent

Agent<TSeq>* Event< TSeq >::agent;

variable entity

Entity<TSeq>* Event< TSeq >::entity;

variable new_state

epiworld_fast_int Event< TSeq >::new_state;

variable queue

epiworld_fast_int Event< TSeq >::queue;

variable tool

ToolPtr<TSeq> Event< TSeq >::tool;

variable virus

VirusPtr<TSeq> Event< TSeq >::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 happen
  • virus_ Virus to add
  • tool_ Tool to add
  • virus_idx Index of virus to be removed (if needed)
  • tool_idx Index of tool to be removed (if needed)
  • new_state_ Next state
  • queue_ Efect on the queue
  • action_ The action to execute


The documentation for this class was generated from the following file epiworld-src/include/epiworld/config.hpp