Source code for flex.actors.role

"""
Copyright (C) 2024  Instituto Andaluz Interuniversitario en Ciencia de Datos e Inteligencia Computacional (DaSCI).

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) 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 Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
"""
from enum import Enum, unique


[docs] @unique class FlexRole(Enum): """Enum which contains all possible roles: - Basic roles: client, server or aggregator - Composite roles: aggregator_client, server_client, server_aggregator, server_aggregator_client. Note that composite roles are designed to represented a combination of Basic roles. """ client = 1 aggregator = 2 server = 3 aggregator_client = 4 server_client = 5 server_aggregator = 6 server_aggregator_client = 7