Ejemplo n.º 1
0
 def __init__(self, name, state=None):
     Id.__init__(self)
     Schedule.__init__(self)
     AnimationModifierList.__init__(self)
     self.name = name
     self.type = 'Animation'
     self.second_type = 'A'
     self.state = state
Ejemplo n.º 2
0
Archivo: id.py Proyecto: nrichart/kll
    def __init__(self, uid):
        Id.__init__(self)
        Schedule.__init__(self)
        Position.__init__(self)
        self.type = 'ScanCode'
        self.uid = uid

        # This uid is used for any post-processing of the uid
        # The original uid is maintained in case it is needed
        self.updated_uid = None
Ejemplo n.º 3
0
    def __init__(self, uid):
        Id.__init__(self)
        Schedule.__init__(self)
        Position.__init__(self)
        self.type = 'ScanCode'
        self.uid = uid

        # By default, interconnect_id of 0
        # Will be set during the merge process if it needs to change
        self.interconnect_id = 0
Ejemplo n.º 4
0
	def __init__( self, uid ):
		Id.__init__( self )
		Schedule.__init__( self )
		Position.__init__( self )
		self.type = 'ScanCode'
		self.uid = uid

		# By default, interconnect_id of 0
		# Will be set during the merge process if it needs to change
		self.interconnect_id = 0
Ejemplo n.º 5
0
Archivo: id.py Proyecto: nrichart/kll
    def __init__(self, type, uid):
        '''
        @param type: String type of the Id
        @param uid:  Unique integer identifier for the Id
        '''
        Id.__init__(self)
        Schedule.__init__(self)
        self.type = type
        self.uid = uid

        # Set secondary type
        self.second_type = self.secondary_types[self.type]

        # Set kll type
        self.kll_type = self.kll_types[self.type]
Ejemplo n.º 6
0
	def __init__( self, type, uid ):
		'''
		@param type: String type of the Id
		@param uid:  Unique integer identifier for the Id
		'''
		Id.__init__( self )
		Schedule.__init__( self )
		self.type = type
		self.uid = uid

		# Set secondary type
		self.second_type = self.secondary_types[ self.type ]

		# Set kll type
		self.kll_type = self.kll_types[ self.type ]
Ejemplo n.º 7
0
Archivo: id.py Proyecto: nrichart/kll
 def json(self):
     '''
     JSON representation of HIDId
     '''
     output = Id.json(self)
     output.update(Schedule.json(self))
     return output
Ejemplo n.º 8
0
Archivo: id.py Proyecto: nrichart/kll
 def json(self):
     '''
     JSON representation of ScanCodeId
     '''
     output = Id.json(self)
     output.update(Schedule.json(self))
     output.update(Position.json(self))
     return output
Ejemplo n.º 9
0
Archivo: id.py Proyecto: ktraister/kll
 def json(self):
     '''
     JSON representation of AnimationId
     '''
     output = Id.json(self)
     output.update(AnimationModifierList.json(self))
     output.update(Schedule.json(self))
     output['name'] = self.name
     output['setting'] = "{}".format(self)
     output['state'] = self.state
     del output['uid']
     return output
Ejemplo n.º 10
0
def start_monitoring():
    sched = Schedule(config.TIMEPERIOD)
    sched.schedule(storefile.monitorStore)
Ejemplo n.º 11
0
def start_monitoring():
    sched = Schedule(config.TIMEPERIOD)
    sched.schedule(storefile.monitorStore)
Ejemplo n.º 12
0
 def setUpClass(cls):
     serino = "MDEVICE"
     #serino = "adede7a6"
     if len(sys.argv) > 1:
         serino = sys.argv[1]
     cls.mod = Schedule(serino, "Pim")
Ejemplo n.º 13
0
 def __init__(self, idcode, uid):
     Id.__init__(self)
     Schedule.__init__(self)
     self.type = 'GenericTrigger'
     self.uid = uid
     self.idcode = idcode
Ejemplo n.º 14
0
 def __init__(self, type, layer):
     Id.__init__(self)
     Schedule.__init__(self)
     self.type = type
     self.uid = layer
def start_collecting():
    sched = Schedule(util.TIMEPERIOD)
    sched.schedule_couchbase()