maliput
|
A simple concrete implementation of the api::rules::PhaseRingBook abstract interface that enables manual addition and removal of api::rules::PhaseRing instances.
#include <include/maliput/base/manual_phase_ring_book.h>
Public Member Functions | |
ManualPhaseRingBook () | |
~ManualPhaseRingBook () override | |
void | AddPhaseRing (const api::rules::PhaseRing &ring) |
Adds ring to this ManualPhaseRingBook. More... | |
void | RemovePhaseRing (const api::rules::PhaseRing::Id &ring_id) |
Removes an api::rules::PhaseRing with an ID of ring_id from this ManualPhaseRingBook. More... | |
![]() | |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (PhaseRingBook) | |
virtual | ~PhaseRingBook ()=default |
std::vector< PhaseRing::Id > | GetPhaseRings () const |
Gets a list of all PhaseRings within this book. More... | |
std::optional< PhaseRing > | GetPhaseRing (const PhaseRing::Id &ring_id) const |
Gets the specified PhaseRing. More... | |
std::optional< PhaseRing > | FindPhaseRing (const RightOfWayRule::Id &rule_id) const |
Finds and returns the PhaseRing containing the specified RightOfWayRule. More... | |
std::optional< PhaseRing > | FindPhaseRing (const Rule::Id &rule_id) const |
Finds and returns the PhaseRing containing the specified Rule. More... | |
Additional Inherited Members | |
![]() | |
PhaseRingBook ()=default | |
|
overridedefault |
void AddPhaseRing | ( | const api::rules::PhaseRing & | ring | ) |
Adds ring
to this ManualPhaseRingBook.
std::exception | if an api::rules::PhaseRing with the same ID already exists, or if ring contains a rule that already exists in a previously added api::rules::PhaseRing. |
void RemovePhaseRing | ( | const api::rules::PhaseRing::Id & | ring_id | ) |
Removes an api::rules::PhaseRing with an ID of ring_id
from this ManualPhaseRingBook.
std::exception | if the specified api::rules::PhaseRing does not exist. |