Class Moderator::Assignments

Nested Relationships

This class is a nested type of Class Moderator.

Class Documentation

class Assignments

This class indicates the range of each reservation that the blockade moderator has assigned as active. Each robot is allowed to move at will from the begin checkpoint to the end checkpoint in the range assigned for it.

Public Functions

std::size_t version() const

Get the version of the current assignment sets. The version number will increase by at least 1 each time the assignments change. This can be used to identify when new assignment notifications are necessary.

const std::unordered_map<ParticipantId, ReservedRange> &ranges() const

Get the ranges that are assigned to each participant.