AgentX.py 1.03 KB

import utils.Logger as L

from .Agent import Agent


log = L.setupLogger("AgentXTaskLogger", "AgentX")

"""
    Task to handle the execution of the program

    check the environment status in database
    check the devices status (telescope / cameras)
    check if the last schedule made has to be planned
    launch schedule's sequences
"""


class AgentX(Agent):

    def __init__(self, name, config_filename=None):
        super().__init__(name, config_filename)

    # @override
    def init(self):
        super().init()
        # --- Set the mode according the startmode value
        agent_alias = self.__class__.__name__
        self.set_mode_from_config(agent_alias)

    # @override
    def load_config(self):
        super().load_config()

    # @override
    def update_survey(self):
        super().update_db_survey()

    # @override
    def read_next_command(self):
        return super().read_next_command()

    # @override
    def do_log(self):
        super().do_log()

    # @override
    def specific_process(self, cmd):
        pass