コード例 #1
0
ファイル: Drain.py プロジェクト: iplusu/sarp
 def __init__( self , app, spAddr, moteIF ) :
     if type(moteIF) == str :
         moteIF = Comm.openMoteIF(moteIF, app)
     drainObj = drain.Drain(spAddr, moteIF)
     drainConnectorObj = drain.DrainConnector(spAddr, moteIF)
     self.app = app #save for later use
     JavaInheritor.__init__(self, (drainObj, drainConnectorObj) )
コード例 #2
0
ファイル: Drain.py プロジェクト: sopier/WSNTools
 def __init__( self , app, spAddr, moteIF ) :
     if type(moteIF) == str :
         moteIF = Comm.openMoteIF(moteIF, app)
     drainObj = drain.Drain(spAddr, moteIF)
     drainConnectorObj = drain.DrainConnector(spAddr, moteIF)
     self.app = app #save for later use
     JavaInheritor.__init__(self, (drainObj, drainConnectorObj) )
コード例 #3
0
ファイル: Drip.py プロジェクト: iplusu/sarp
 def __init__( self , app, channel, moteIF ) :
     self.app = app
     if type(moteIF) == str :
         moteIF = Comm.openMoteIF(moteIF, app)
     dripObj = drip.Drip(channel, moteIF)
     JavaInheritor.__init__(self, (dripObj,) )
コード例 #4
0
 def __init__( self , app, channel, moteIF ) :
     self.app = app
     if type(moteIF) == str :
         moteIF = Comm.openMoteIF(moteIF, app)
     dripObj = drip.Drip(channel, moteIF)
     JavaInheritor.__init__(self, (dripObj,) )