コード例 #1
0
ファイル: service.py プロジェクト: woogiee/sonospy
 def __init__(self,
              service,
              name,
              send_events,
              multicast,
              data_type,
              values=[]):
     BaseStateVariable.__init__(self, service, name, send_events, multicast,
                                data_type, values)
コード例 #2
0
    def _create_state_var(self, name, send_events, multicast,
                          data_type, values):
        """ Factory method that creates a service state variable.

        @return: The state variable object.
        @rtype: BaseStateVariable
        """
        return BaseStateVariable(self.service,
                    name, send_events, multicast, data_type, values)
コード例 #3
0
ファイル: service.py プロジェクト: AndyThirtover/wb_gateway
 def subscribe(self, callback):
     BaseStateVariable.subscribe_for_update(self, callback)
コード例 #4
0
ファイル: service.py プロジェクト: AndyThirtover/wb_gateway
 def __init__(self, service, name, send_events, multicast, data_type, values):
     BaseStateVariable.__init__(self, service, name, send_events,
                                multicast, data_type, values)
コード例 #5
0
 def subscribe(self, callback):
     BaseStateVariable.subscribe_for_update(self, callback)