chrono::synchrono::SynSimulationMessage Class Reference
Description
This class contains diagnostic and simulation configuration based information that is typically passed between CommunicationManagers in the initialization phase.
#include <SynSimulationMessage.h>
Inheritance diagram for chrono::synchrono::SynSimulationMessage:
Collaboration diagram for chrono::synchrono::SynSimulationMessage:
Public Member Functions | |
SynSimulationMessage (AgentKey source_key=AgentKey(), AgentKey destination_key=AgentKey(), bool quit_sim=false) | |
Constructor. More... | |
virtual | ~SynSimulationMessage () |
Destroy the SynMessage object. | |
virtual void | ConvertFromFlatBuffers (const SynFlatBuffers::Message *message) override |
Converts a received flatbuffer message to a SynMessage. More... | |
virtual FlatBufferMessage | ConvertToFlatBuffers (flatbuffers::FlatBufferBuilder &builder) const override |
Converts this object to a flatbuffer message. More... | |
Public Attributes | |
bool | m_quit_sim |
Instruction to end the simulation early. | |
Additional Inherited Members |
Constructor & Destructor Documentation
◆ SynSimulationMessage()
chrono::synchrono::SynSimulationMessage::SynSimulationMessage | ( | AgentKey | source_key = AgentKey() , |
AgentKey | destination_key = AgentKey() , |
||
bool | quit_sim = false |
||
) |
Constructor.
Constructors.
- Parameters
-
source_key the id of the source to which the message is sent from destination_key the id of the destination to which the message is sent to quit_sim quit the simulation
Member Function Documentation
◆ ConvertFromFlatBuffers()
|
overridevirtual |
Converts a received flatbuffer message to a SynMessage.
- Parameters
-
message the flatbuffer message to convert to a SynMessage
Implements chrono::synchrono::SynMessage.
◆ ConvertToFlatBuffers()
|
overridevirtual |
Converts this object to a flatbuffer message.
Generate FlatBuffers message from this message's state.
- Parameters
-
builder a flatbuffer builder to construct the message with
- Returns
- FlatBufferMessage the constructed flatbuffer message
Implements chrono::synchrono::SynMessage.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynSimulationMessage.h
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynSimulationMessage.cpp