def __init__(self):
        Singleton.__init__(self)
        self.__models__ = {}
        self.__logic__ = {}
        self.__sensors__ = {}
        self.users = {}
        self.__notification_data__ = []
        self.__t__ = None

        self.default_sensor_logic = SensorLogic
Beispiel #2
0
    def __init__(self):
        Singleton.__init__(self)
        # self.config = {}
        # self.task_thread = TaskThread()
        self.taskMng = TaskMng()
        self.eventMng = EventMngr()

        self.tid = thread.get_ident()
        # self.workers =
        # 工作计算成员 池
        # 分配器、调度器
        # 注意它的执行线程
        self.subjectTask = Subject()
        self.__taskId = 0
        self.__valid = True
        self.__event = threading.Event()
        self.__retList = []
 def __init__(self):
     Singleton.__init__(self)
     self.__sensors__ = {}
     self.__actions__ = {}
     self.__kind_action__ = {}
Beispiel #4
0
 def __init__(self, *args, **kwargs):
    Singleton.__init__( self )