Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Implements the simulation error event message data type. More...
#include <error_message.h>
Public Member Functions | |
ErrorEventMessage ()=delete | |
ErrorEventMessage (std::string sender, unsigned int run, int time, std::string what) 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 int | model_time {} |
Gets the associate Simulation time. More... | |
const std::string | message |
Gets the error 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 error event message data type.
|
delete |
|
noexcept |
Initialises a new instance of the ErrorEventMessage structure.
sender | The sender identifier |
run | Current simulation run number |
time | Current simulation time |
what | The associated error 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::ErrorEventMessage::message |
Gets the error message.
const int hgps::ErrorEventMessage::model_time {} |
Gets the associate Simulation time.