AgentX.py
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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