|
Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Implements the simulation executive event message data type. More...
#include <runner_message.h>
Public Member Functions | |
| RunnerEventMessage ()=delete | |
| RunnerEventMessage (std::string sender, RunnerAction run_action) noexcept | |
| Initialise a new instance of the RunnerEventMessage class. More... | |
| RunnerEventMessage (std::string sender, RunnerAction run_action, double elapsed) noexcept | |
| Initialise a new instance of the RunnerEventMessage class. More... | |
| RunnerEventMessage (std::string sender, RunnerAction run_action, unsigned int run) noexcept | |
| Initialise a new instance of the RunnerEventMessage class. More... | |
| RunnerEventMessage (std::string sender, RunnerAction run_action, unsigned int run, double elapsed) noexcept | |
| Initialise a new instance of the RunnerEventMessage class. 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 | |
| EventMessage & | operator= (const EventMessage &)=delete |
| EventMessage & | operator= (EventMessage &&)=delete |
| virtual | ~EventMessage ()=default |
| Destroys an EventMessage instance. More... | |
Public Attributes | |
| RunnerAction | action {} |
| The simulation executive action. More... | |
| double | elapsed_ms {} |
| The action elapsed time in milliseconds. 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... | |
Implements the simulation executive event message data type.
|
delete |
|
noexcept |
Initialise a new instance of the RunnerEventMessage class.
| sender | The sender identifier |
| run_action | The event action |
|
noexcept |
Initialise a new instance of the RunnerEventMessage class.
| sender | The sender identifier |
| run_action | The event action |
| elapsed | Action elapsed time in milliseconds |
|
noexcept |
Initialise a new instance of the RunnerEventMessage class.
| sender | The sender identifier |
| run_action | The event action |
| run | The simulation run number |
|
noexcept |
Initialise a new instance of the RunnerEventMessage class.
| sender | The sender identifier |
| run_action | The event action |
| run | The simulation run number |
| elapsed | Action elapsed time in milliseconds |
|
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.
| RunnerAction hgps::RunnerEventMessage::action {} |
The simulation executive action.
| double hgps::RunnerEventMessage::elapsed_ms {} |
The action elapsed time in milliseconds.