示例#1
0
class Bd2Hal(object):
    ''' Method to initilize the laser package '''
    def __init__(self):
        self.name = 'bd2_hal'
        self.state = OffState()

    '''
    Method to handle events
        Parameters:
            event: Event passed from HUB
    '''

    def on_event(self, event):
        self.state = self.state.on_event(event)
示例#2
0
 def __init__(self):
     self.name = 'bt1_hal'
     self.state = OffState()
示例#3
0
 def __init__(self):
     self.name = 'bd1_bd2'
     self.state = OffState()
示例#4
0
 def __init__(self):
     self.name = 'kit_utl'
     self.state = OffState()