chrono::synchrono::SynEnvironmentMessage Class Reference
Description
The environment agent state class This should be inherited and stored with additional state information relevant to the environment agent Should hold frequently passed data, such as synchronization information For infrequently passed data, please see SynAgentDescriptionMessage.
#include <SynEnvironmentMessage.h>
Inheritance diagram for chrono::synchrono::SynEnvironmentMessage:
Collaboration diagram for chrono::synchrono::SynEnvironmentMessage:
Public Member Functions | |
SynEnvironmentMessage (AgentKey source_key=AgentKey(), AgentKey destination_key=AgentKey()) | |
Constructor. More... | |
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 | |
std::shared_ptr< SynMAPMessage > | map_message |
std::shared_ptr< SynSPATMessage > | spat_message |
Additional Inherited Members |
Constructor & Destructor Documentation
◆ SynEnvironmentMessage()
chrono::synchrono::SynEnvironmentMessage::SynEnvironmentMessage | ( | AgentKey | source_key = AgentKey() , |
AgentKey | destination_key = AgentKey() |
||
) |
Constructor.
- 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
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.
- 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/SynEnvironmentMessage.h
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynEnvironmentMessage.cpp