コード例 #1
0
    def __init__(self, inst, props, *args, **kwargs):
        super(SpringfieldCounterTimerController,
              self).__init__(inst, props, *args, **kwargs)

        # initialize hardware communication
        self.springfield = springfieldlib.SpringfieldCounterHW()

        # do some initialization
        self._counters = {}
コード例 #2
0
 def __init__(self, inst, props, *args, **kwargs):
     """Constructor"""
     super(SpringfieldBaseCounterTimerController,
           self).__init__(inst, props, *args, **kwargs)
     self.springfield = springfieldlib.SpringfieldCounterHW()