Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
hgps::RunnerEventMessage Struct Referencefinal

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

#include <runner_message.h>

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

Public Member Functions

 RunnerEventMessage ()=delete
 RunnerEventMessage (std::string sender, RunnerAction run_action) noexcept
 Initialise a new instance of the RunnerEventMessage class.
 RunnerEventMessage (std::string sender, RunnerAction run_action, double elapsed) noexcept
 Initialise a new instance of the RunnerEventMessage class.
 RunnerEventMessage (std::string sender, RunnerAction run_action, unsigned int run) noexcept
 Initialise a new instance of the RunnerEventMessage class.
 RunnerEventMessage (std::string sender, RunnerAction run_action, unsigned int run, double elapsed) noexcept
 Initialise a new instance of the RunnerEventMessage class.
int id () const noexcept override
 Gets the unique message type identifier.
std::string to_string () const override
 Create a string representation of this instance.
void accept (EventMessageVisitor &visitor) const override
 Double dispatch the message using a visitor implementation.
Public Member Functions inherited from hgps::EventMessage
 EventMessage ()=delete
 EventMessage (std::string sender, unsigned int run)
 Initialises a new instance of the EventMessage structure.
 EventMessage (const EventMessage &)=delete
 EventMessage (EventMessage &&)=delete
EventMessage & operator= (const EventMessage &)=delete
EventMessage & operator= (EventMessage &&)=delete
virtual ~EventMessage ()=default
 Destroys an EventMessage instance.

Public Attributes

RunnerAction action {}
 The simulation executive action.
double elapsed_ms {}
 The action elapsed time in milliseconds.
Public Attributes inherited from hgps::EventMessage
const std::string source
 Gets the sender identifier.
const unsigned int run_number {}
 Gets the associated Simulation run number.

Detailed Description

Implements the simulation executive event message data type.

Constructor & Destructor Documentation

◆ RunnerEventMessage() [1/5]

hgps::RunnerEventMessage::RunnerEventMessage ( )
delete
Here is the caller graph for this function:

◆ RunnerEventMessage() [2/5]

hgps::RunnerEventMessage::RunnerEventMessage ( std::string sender,
RunnerAction run_action )
noexcept

Initialise a new instance of the RunnerEventMessage class.

Parameters
senderThe sender identifier
run_actionThe event action
Here is the call graph for this function:

◆ RunnerEventMessage() [3/5]

hgps::RunnerEventMessage::RunnerEventMessage ( std::string sender,
RunnerAction run_action,
double elapsed )
noexcept

Initialise a new instance of the RunnerEventMessage class.

Parameters
senderThe sender identifier
run_actionThe event action
elapsedAction elapsed time in milliseconds
Here is the call graph for this function:

◆ RunnerEventMessage() [4/5]

hgps::RunnerEventMessage::RunnerEventMessage ( std::string sender,
RunnerAction run_action,
unsigned int run )
noexcept

Initialise a new instance of the RunnerEventMessage class.

Parameters
senderThe sender identifier
run_actionThe event action
runThe simulation run number
Here is the call graph for this function:

◆ RunnerEventMessage() [5/5]

hgps::RunnerEventMessage::RunnerEventMessage ( std::string sender,
RunnerAction run_action,
unsigned int run,
double elapsed )
noexcept

Initialise a new instance of the RunnerEventMessage class.

Parameters
senderThe sender identifier
run_actionThe event action
runThe simulation run number
elapsedAction elapsed time in milliseconds
Here is the call graph for this function:

Member Function Documentation

◆ accept()

void hgps::RunnerEventMessage::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::RunnerEventMessage::id ( ) const
overridevirtualnoexcept

Gets the unique message type identifier.

Returns
The message type identifier

Implements hgps::EventMessage.

◆ to_string()

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

Create a string representation of this instance.

Returns
The string representation

Implements hgps::EventMessage.

Here is the caller graph for this function:

Member Data Documentation

◆ action

RunnerAction hgps::RunnerEventMessage::action {}

The simulation executive action.

◆ elapsed_ms

double hgps::RunnerEventMessage::elapsed_ms {}

The action elapsed time in milliseconds.


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