Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Implements the simulation information event message data type. More...
#include <info_message.h>
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... | |
![]() | |
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 | |
EventMessage & | operator= (const EventMessage &)=delete |
EventMessage & | operator= (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... | |
![]() | |
const std::string | source |
Gets the sender identifier. More... | |
const unsigned int | run_number {} |
Gets the associated Simulation run number. More... | |
Implements the simulation information event message data type.
|
delete |
|
noexcept |
Initialises a new instance of the ErrorEventMessage structure.
sender | The sender identifier |
action | Source action identification |
run | Current simulation run number |
time | Current simulation time |
|
noexcept |
Initialises a new instance of the ErrorEventMessage structure.
sender | The sender identifier |
action | Source action identification |
run | Current simulation run number |
time | Current simulation time |
msg | The notification message |
|
overridevirtual |
Double dispatch the message using a visitor implementation.
visitor | The event message instance to accept |
Implements hgps::EventMessage.
|
overridevirtualnoexcept |
Gets the unique message type identifier.
Implements hgps::EventMessage.
|
overridevirtual |
Create a string representation of this instance.
Implements hgps::EventMessage.
const std::string hgps::InfoEventMessage::message |
Gets the notification message.
const ModelAction hgps::InfoEventMessage::model_action {} |
Gets the source action value.
const int hgps::InfoEventMessage::model_time {} |
Gets the associated Simulation time.