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) )
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,) )