Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
hgps::InfoEventMessage Struct Referencefinal

Implements the simulation information event message data type. More...

#include <info_message.h>

Inheritance diagram for hgps::InfoEventMessage:
[legend]
Collaboration diagram for hgps::InfoEventMessage:
[legend]

Public Member Functions

 InfoEventMessage ()=delete
 
 InfoEventMessage (std::string sender, ModelAction action, unsigned int run, int time) noexcept
 Initialises a new instance of the ErrorEventMessage structure. More...
 
 InfoEventMessage (std::string sender, ModelAction action, unsigned int run, int time, std::string msg) noexcept
 Initialises a new instance of the ErrorEventMessage structure. More...
 
int id () const noexcept override
 Gets the unique message type identifier. More...
 
std::string to_string () const override
 Create a string representation of this instance. More...
 
void accept (EventMessageVisitor &visitor) const override
 Double dispatch the message using a visitor implementation. More...
 
- Public Member Functions inherited from hgps::EventMessage
 EventMessage ()=delete
 
 EventMessage (std::string sender, unsigned int run)
 Initialises a new instance of the EventMessage structure. More...
 
 EventMessage (const EventMessage &)=delete
 
 EventMessage (EventMessage &&)=delete
 
EventMessageoperator= (const EventMessage &)=delete
 
EventMessageoperator= (EventMessage &&)=delete
 
virtual ~EventMessage ()=default
 Destroys an EventMessage instance. More...
 

Public Attributes

const ModelAction model_action {}
 Gets the source action value. More...
 
const int model_time {}
 Gets the associated Simulation time. More...
 
const std::string message
 Gets the notification message. More...
 
- Public Attributes inherited from hgps::EventMessage
const std::string source
 Gets the sender identifier. More...
 
const unsigned int run_number {}
 Gets the associated Simulation run number. More...
 

Detailed Description

Implements the simulation information event message data type.

Constructor & Destructor Documentation

◆ InfoEventMessage() [1/3]

hgps::InfoEventMessage::InfoEventMessage ( )
delete

◆ InfoEventMessage() [2/3]

hgps::InfoEventMessage::InfoEventMessage ( std::string  sender,
ModelAction  action,
unsigned int  run,
int  time 
)
noexcept

Initialises a new instance of the ErrorEventMessage structure.

Parameters
senderThe sender identifier
actionSource action identification
runCurrent simulation run number
timeCurrent simulation time

◆ InfoEventMessage() [3/3]

hgps::InfoEventMessage::InfoEventMessage ( std::string  sender,
ModelAction  action,
unsigned int  run,
int  time,
std::string  msg 
)
noexcept

Initialises a new instance of the ErrorEventMessage structure.

Parameters
senderThe sender identifier
actionSource action identification
runCurrent simulation run number
timeCurrent simulation time
msgThe notification message

Member Function Documentation

◆ accept()

void hgps::InfoEventMessage::accept ( EventMessageVisitor visitor) const
overridevirtual

Double dispatch the message using a visitor implementation.

Parameters
visitorThe event message instance to accept

Implements hgps::EventMessage.

Here is the call graph for this function:

◆ id()

int hgps::InfoEventMessage::id ( ) const
overridevirtualnoexcept

Gets the unique message type identifier.

Returns
The message type identifier

Implements hgps::EventMessage.

◆ to_string()

std::string hgps::InfoEventMessage::to_string ( ) const
overridevirtual

Create a string representation of this instance.

Returns
The string representation

Implements hgps::EventMessage.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ message

const std::string hgps::InfoEventMessage::message

Gets the notification message.

◆ model_action

const ModelAction hgps::InfoEventMessage::model_action {}

Gets the source action value.

◆ model_time

const int hgps::InfoEventMessage::model_time {}

Gets the associated Simulation time.


The documentation for this struct was generated from the following files: