Exemplo n.º 1
0
    def __init__(self):
        self.device_master = None
        self.tasks = []

        self.active_tasks = []
        self.active_tasks_old_state = []

        self.skipped_tasks = [];

        self.state = {'pressed_buttons':[]}

        self.monitors = [ { 'id': 1, 'task': None },
                          { 'id': 2, 'task': None },
                          { 'id': 3, 'task': None },
                          { 'id': 4, 'task': None },
                        ]

        # whis list used by failure requarements of CB tasks
        self.monitorsWithProgressBarZero = []

        self.cb_controller = CaptainsBridgeController(self)

        # tasks whom been active on previously steps
        # it's fill in add_random_tasks
        self.usedTasksIds = []
        self.numUsedTasks = 22

        # always allow to open enter door
        self.openDoorPermission = [True, False, False]

        self.send_time_to_monitors = True

        self.time_stamp_old = time.time()
        self.time_stamp_new = time.time()

        self.time_stamp_to_send = time.time()