Class ModeratorRectificationRequesterFactory¶
Defined in File Rectifier.hpp
Inheritance Relationships¶
Base Type¶
public rmf_traffic::blockade::RectificationRequesterFactory
(Class RectificationRequesterFactory)
Class Documentation¶
-
class
rmf_traffic::blockade
::
ModeratorRectificationRequesterFactory
: public rmf_traffic::blockade::RectificationRequesterFactory¶ This class provides a simple implementation of a RectificationRequesterFactory that just hooks directly into a Moderator instance and issues rectification requests when told to based on the current inconsistencies in the Database.
Public Functions
Constructor
- Parameters
[in] moderator
: The moderator object that this will rectify for.
-
virtual std::unique_ptr<RectificationRequester>
make
(Rectifier rectifier, ParticipantId participant_id) final¶ Create a RectificationRequester to be held by a Participant
- Parameters
[in] rectifier
: This rectifier can be used by the RectificationRequester to ask the participant to check its status.[in] participant_id
: The ID of the participant that will hold onto this RectificationRequester. This is the same participant that the rectifier will request for checks.
-
void
rectify
()¶ Call this function to instruct all the RectificationRequesters produced by this factory to perform their rectifications.