Example #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
Example #2
0
File: id.py Project: 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
Example #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
Example #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
Example #5
0
File: id.py Project: 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]
Example #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 ]
Example #7
0
File: id.py Project: nrichart/kll
 def json(self):
     '''
     JSON representation of HIDId
     '''
     output = Id.json(self)
     output.update(Schedule.json(self))
     return output
Example #8
0
File: id.py Project: 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
Example #9
0
File: id.py Project: 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
Example #10
0
def start_monitoring():
    sched = Schedule(config.TIMEPERIOD)
    sched.schedule(storefile.monitorStore)
Example #11
0
def start_monitoring():
    sched = Schedule(config.TIMEPERIOD)
    sched.schedule(storefile.monitorStore)
Example #12
0
 def setUpClass(cls):
     serino = "MDEVICE"
     #serino = "adede7a6"
     if len(sys.argv) > 1:
         serino = sys.argv[1]
     cls.mod = Schedule(serino, "Pim")
Example #13
0
 def __init__(self, idcode, uid):
     Id.__init__(self)
     Schedule.__init__(self)
     self.type = 'GenericTrigger'
     self.uid = uid
     self.idcode = idcode
Example #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()