Source code for plafosim.platoon_role

#
# Copyright (c) 2020-2025 Julian Heinovski <heinovski@ccs-labs.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#

from enum import Enum


[docs]class PlatoonRole(Enum): """ A collection of available platoon roles. """ NONE = 0 # corresponds to driving individually LEADER = 1 # corresponds to being the leader of a platoon FOLLOWER = 2 # corresponds to being a follower in a platoon JOINER = 3 # corresponds to being in the process of joining a platoon LEAVER = 4 # corresponds to being in the process of leaving a platoon