#!E:\Pycharm Projects\Waytous
# -*- coding: utf-8 -*-
# @Time : 2022/5/30 14:45
# @Author : Opfer
# @Site :
# @File : dispatchInfo.py
# @Software: PyCharm


class DispatchInfo:
    """
    class for dispatch group info.
    """

    # dispatch groups
    group_num = 1
    group_set = set()

    # device group structure
    group_dump_dict = {}  # team_id -> dict {[dump_id, unload_area_id], [dump_id, unload_area_id], ...}
    group_excavator_dict = {}  # team_id -> dict {[excavator_id, load_area_id], ...}
    group_truck_dict = {}  # team_id -> dict {truck_id, ...}

    dump_group_dict = {}  # dump_id -> team_id
    excavator_group_dict = {}  # excavator_id -> team_id
    truck_group_dict = {}  # truck_id -> team_id

    # group feature
    group_mode = {}

    @classmethod
    def update_device_group_structure(cls):
        pass

    @classmethod
    def update_group_mode(cls):
        pass

    @classmethod
    def dispatch_group_init(cls):
        """
        update basic paras (group_set, dict, num ...)
        :return:
        """
        pass
