chrono::synchrono::SynSPATMessage Class Reference
  Description
SPAT Message.
#include <SynSPATMessage.h>
Inheritance diagram for chrono::synchrono::SynSPATMessage:

Collaboration diagram for chrono::synchrono::SynSPATMessage:

| Public Member Functions | |
| SynSPATMessage (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... | |
| void | ConvertSPATFromFlatBuffers (const SynFlatBuffers::SPAT::State *state) | 
| Converts a received spat flatbuffer message to a SynMessage.  More... | |
| virtual FlatBufferMessage | ConvertToFlatBuffers (flatbuffers::FlatBufferBuilder &builder) const override | 
| Converts this object to a flatbuffer message.  More... | |
| virtual void | SetColor (int intersection, int approach, int lane, LaneColor color) | 
| Set the color.  More... | |
| Public Attributes | |
| std::vector< IntersectionLane > | lanes | 
| Additional Inherited Members | 
Constructor & Destructor Documentation
◆ SynSPATMessage()
| chrono::synchrono::SynSPATMessage::SynSPATMessage | ( | 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.
◆ ConvertSPATFromFlatBuffers()
| void chrono::synchrono::SynSPATMessage::ConvertSPATFromFlatBuffers | ( | const SynFlatBuffers::SPAT::State * | state | ) | 
Converts a received spat flatbuffer message to a SynMessage.
- Parameters
- 
  state the spat flatbuffer message to convert to a 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.
◆ SetColor()
| 
 | virtual | 
Set the color.
- Parameters
- 
  intersection approach lane color 
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynSPATMessage.h
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynSPATMessage.cpp
 Public Member Functions inherited from
 Public Member Functions inherited from 