예제 #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,) )