- def __init__(self,*args):
- _swig_setattr(self, MAC, 'this', apply(_TOSSIM.new_MAC,args))
- _swig_setattr(self, MAC, 'thisown', 1)
- def __del__(self, destroy= _TOSSIM.delete_MAC):
- try:
- if self.thisown: destroy(self)
- except: pass
- def initHigh(*args): return apply(_TOSSIM.MAC_initHigh,args)
- def initLow(*args): return apply(_TOSSIM.MAC_initLow,args)
- def high(*args): return apply(_TOSSIM.MAC_high,args)
- def low(*args): return apply(_TOSSIM.MAC_low,args)
- def symbolsPerSec(*args): return apply(_TOSSIM.MAC_symbolsPerSec,args)
- def bitsPerSymbol(*args): return apply(_TOSSIM.MAC_bitsPerSymbol,args)
- def preambleLength(*args): return apply(_TOSSIM.MAC_preambleLength,args)
- def exponentBase(*args): return apply(_TOSSIM.MAC_exponentBase,args)
- def maxIterations(*args): return apply(_TOSSIM.MAC_maxIterations,args)
- def minFreeSamples(*args): return apply(_TOSSIM.MAC_minFreeSamples,args)
- def rxtxDelay(*args): return apply(_TOSSIM.MAC_rxtxDelay,args)
- def ackTime(*args): return apply(_TOSSIM.MAC_ackTime,args)
- def setInitHigh(*args): return apply(_TOSSIM.MAC_setInitHigh,args)
- def setInitLow(*args): return apply(_TOSSIM.MAC_setInitLow,args)
- def setHigh(*args): return apply(_TOSSIM.MAC_setHigh,args)
- def setLow(*args): return apply(_TOSSIM.MAC_setLow,args)
- def setSymbolsPerSec(*args): return apply(_TOSSIM.MAC_setSymbolsPerSec,args)
- def setBitsBerSymbol(*args): return apply(_TOSSIM.MAC_setBitsBerSymbol,args)
- def setPreambleLength(*args): return apply(_TOSSIM.MAC_setPreambleLength,args)
- def setExponentBase(*args): return apply(_TOSSIM.MAC_setExponentBase,args)
- def setMaxIterations(*args): return apply(_TOSSIM.MAC_setMaxIterations,args)
- def setMinFreeSamples(*args): return apply(_TOSSIM.MAC_setMinFreeSamples,args)
- def setRxtxDelay(*args): return apply(_TOSSIM.MAC_setRxtxDelay,args)
- def setAckTime(*args): return apply(_TOSSIM.MAC_setAckTime,args)
- def __repr__(self):
- return "<C MAC instance at %s>" % (self.this,)
-
-class MACPtr(MAC):
- def __init__(self,this):
- _swig_setattr(self, MAC, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, MAC, 'thisown', 0)
- _swig_setattr(self, MAC,self.__class__,MAC)
-_TOSSIM.MAC_swigregister(MACPtr)
+ __repr__ = _swig_repr
+ def __init__(self, *args):
+ this = _TOSSIM.new_MAC(*args)
+ try: self.this.append(this)
+ except: self.this = this
+ __swig_destroy__ = _TOSSIM.delete_MAC
+ __del__ = lambda self : None;
+ def initHigh(*args): return _TOSSIM.MAC_initHigh(*args)
+ def initLow(*args): return _TOSSIM.MAC_initLow(*args)
+ def high(*args): return _TOSSIM.MAC_high(*args)
+ def low(*args): return _TOSSIM.MAC_low(*args)
+ def symbolsPerSec(*args): return _TOSSIM.MAC_symbolsPerSec(*args)
+ def bitsPerSymbol(*args): return _TOSSIM.MAC_bitsPerSymbol(*args)
+ def preambleLength(*args): return _TOSSIM.MAC_preambleLength(*args)
+ def exponentBase(*args): return _TOSSIM.MAC_exponentBase(*args)
+ def maxIterations(*args): return _TOSSIM.MAC_maxIterations(*args)
+ def minFreeSamples(*args): return _TOSSIM.MAC_minFreeSamples(*args)
+ def rxtxDelay(*args): return _TOSSIM.MAC_rxtxDelay(*args)
+ def ackTime(*args): return _TOSSIM.MAC_ackTime(*args)
+ def setInitHigh(*args): return _TOSSIM.MAC_setInitHigh(*args)
+ def setInitLow(*args): return _TOSSIM.MAC_setInitLow(*args)
+ def setHigh(*args): return _TOSSIM.MAC_setHigh(*args)
+ def setLow(*args): return _TOSSIM.MAC_setLow(*args)
+ def setSymbolsPerSec(*args): return _TOSSIM.MAC_setSymbolsPerSec(*args)
+ def setBitsBerSymbol(*args): return _TOSSIM.MAC_setBitsBerSymbol(*args)
+ def setPreambleLength(*args): return _TOSSIM.MAC_setPreambleLength(*args)
+ def setExponentBase(*args): return _TOSSIM.MAC_setExponentBase(*args)
+ def setMaxIterations(*args): return _TOSSIM.MAC_setMaxIterations(*args)
+ def setMinFreeSamples(*args): return _TOSSIM.MAC_setMinFreeSamples(*args)
+ def setRxtxDelay(*args): return _TOSSIM.MAC_setRxtxDelay(*args)
+ def setAckTime(*args): return _TOSSIM.MAC_setAckTime(*args)
+MAC_swigregister = _TOSSIM.MAC_swigregister
+MAC_swigregister(MAC)