Пример #1
0
 def __init__(self):
     Manager.__init__(self, 'prediction')
     self.high = []
     self.low = []
     self.priority = 0
     self.modTime = None
     self.revision = 0
Пример #2
0
 def __init__(self, real_time=False):
     Manager.__init__(self)
     self.real_time = real_time
     self.balance = 1.0
     if self.real_time:
         self.balance = self.GetBTCBalance()
     self.open_orders = []
Пример #3
0
 def __init__(self, real_time=False):
     Manager.__init__(self)
     self.real_time = real_time
     self.balance = 1.0
     if self.real_time:
         self.balance = self.GetBTCBalance()
     self.open_orders = []
Пример #4
0
    def __init__(self):
        Manager.__init__(self)
        self.log = {}
        self.daemon_conf = config.getDaemonConf()

        self.interval = self.daemon_conf['interval']
        super(InstanceWatcher, self).__init__()
 def __init__(self, name, salary, department, knowledge, weapon, company_vehicle, attire, mission):
     self.knowledge = knowledge
     self.weapon = weapon
     self.company_vehicle = company_vehicle
     self.attire = attire
     self.mission = mission
     Manager.__init__(self, name, salary, department)
Пример #6
0
 def __init__(self):
     Manager.__init__( self, 'prediction')
     self.high     = []
     self.low      = []
     self.priority = 0
     self.modTime  = None
     self.revision = 0
Пример #7
0
    def __init__(self, transport):
        """
        Call superclass initializer to initialize the environment variables which are used by both clients and servers.
        Then initialize the environment variable which is used bo just clients.
        This is TOR_PT_CLIENT_TRANSPORTS.
        """

        Manager.__init__(self)

        os.environ['TOR_PT_CLIENT_TRANSPORTS'] = transport
Пример #8
0
    def __init__(self, transport):
        """
        Call superclass initializer to initialize the environment variables which are used by both clients and servers.
        Then initialize the environment variable which is used bo just clients.
        This is TOR_PT_CLIENT_TRANSPORTS.
        """

        Manager.__init__(self)

        os.environ['TOR_PT_CLIENT_TRANSPORTS'] = transport
Пример #9
0
    def __init__(self, context, depth_generator):
        Manager.__init__(self)

        self.depth_generator = depth_generator

        self.user_generator = UserGenerator()
        self.user_generator.create(context)

        self.user_generator.register_user_cb(self.new_user, self.lost_user)

        self.skel_cap = self.user_generator.skeleton_cap
        self.skel_cap.set_profile(SKEL_PROFILE_ALL)
Пример #10
0
	def __init__(self, context, depth_generator):
		Manager.__init__(self)

		self.depth_generator = depth_generator

		self.user_generator = UserGenerator()
		self.user_generator.create(context)

		self.user_generator.register_user_cb(self.new_user, self.lost_user)

		self.skel_cap = self.user_generator.skeleton_cap
		self.skel_cap.set_profile(SKEL_PROFILE_ALL)
Пример #11
0
    def __init__(self, transport):
        """
        Call superclass initializer to initialize the environment variables which are used by both clients and servers.
        Then initialize the environment variables which are used bo just servers.
        These are TOR_PT_EXTENDED_SERVER_PORT, TOR_PT_ORPORT, TOR_PT_SERVER_BINDADDR, and TOR_PT_SERVER_TRANSPORTS.
        """

        Manager.__init__(self)

        os.environ['TOR_PT_EXTENDED_SERVER_PORT'] = '127.0.0.1:22211'
        os.environ['TOR_PT_ORPORT'] = '127.0.0.1:43210'
        os.environ['TOR_PT_SERVER_BINDADDR'] = transport \
            + '-127.0.0.1:46466'
        os.environ['TOR_PT_SERVER_TRANSPORTS'] = transport
Пример #12
0
    def __init__(self, transport):
        """
        Call superclass initializer to initialize the environment variables which are used by both clients and servers.
        Then initialize the environment variables which are used bo just servers.
        These are TOR_PT_EXTENDED_SERVER_PORT, TOR_PT_ORPORT, TOR_PT_SERVER_BINDADDR, and TOR_PT_SERVER_TRANSPORTS.
        """

        Manager.__init__(self)

        os.environ['TOR_PT_EXTENDED_SERVER_PORT'] = '127.0.0.1:22211'
        os.environ['TOR_PT_ORPORT'] = '127.0.0.1:43210'
        os.environ['TOR_PT_SERVER_BINDADDR'] = transport \
            + '-127.0.0.1:46466'
        os.environ['TOR_PT_SERVER_TRANSPORTS'] = transport
Пример #13
0
    def __init__(self, game, world, messenger, tribe):
        Manager.__init__(self, game, world, messenger)

        self.tribe = tribe

        self.screen = None
        self.screen_size = None

        self.selection = []

        self.modifier = False

        self.selection_start = ZeroVector()
        self.selection_end = ZeroVector()
        self.selecting = False

        self.pan_speed = 300
        self.pan_velocity = ZeroVector()
        self.world_position = ZeroVector()
Пример #14
0
 def __init__(
     self,
     rootPath="",
     pwd="",
 ):
     if PY2:
         return Manager.__init__(self,
                                 FsLogAnalyzer(),
                                 pwd=pwd,
                                 rootPath=rootPath)
     else:
         return super(FsManager, self).__init__(FsLogAnalyzer(),
                                                pwd=pwd,
                                                rootPath=rootPath)
Пример #15
0
 def __init__(self):
     Manager.__init__(self, 'RequestManager')
Пример #16
0
    def __init__(self):
        Manager.__init__(self)

        self.log = {}
        super(ServerSvcHandler, self).__init__()
Пример #17
0
 def __init__(self):
     Manager.__init__(self)
     self.data = self.ReadData()
Пример #18
0
 def __init__(self):
     Manager.__init__(self, 'training')
     self.version = 0
Пример #19
0
 def __init__(self, game, world, messenger):
     Manager.__init__(self, game, world, messenger)
Пример #20
0
 def __init__(self):
     Manager.__init__( self, 'training' )
     self.version = 0
Пример #21
0
 def __init__(self):
     Manager.__init__(self, 'DataManager')
Пример #22
0
 def __init__(self):
     Manager.__init__(self)
     self.data = self.ReadData()