def __init__(self, **kwargs): """Constructor.""" self.__model = None self.__bidirectional = None self.__graph = None self.__listen = {} Element.__init__(self, **kwargs)
def __init__(self, broadcast=None, nulladdr=None, mtu=None, **kwargs): """Constructor. :param broadcast: Broadcast address. :param nulladdr: Null address (used by `ARP`). :param mtu: Maximum transmission unit. If the `broadcast` address is not specified, then the default broadcast address is used. """ if broadcast is None: broadcast = self.__class__.broadcast if nulladdr is None: nulladdr = self.__class__.nulladdr if mtu is None: mtu = self.__class__.mtu self.broadcast = broadcast self.mtu = mtu self.__phy = None self.__addr = None self.__htype = None self.checkcrc = None self.promiscuous = None self.drpdata = SimEvent() self.ackdata = SimEvent() Element.__init__(self, **kwargs) errmsg = "[MAC]: Invalid Port configuration! " + \ "Must have 'RXU' and 'TXU' ports!" assert self.hasport("RXU") and self.hasport("TXU"), errmsg self.drpdata.name = "%s.%s"%(self.name, "drpdata") self.ackdata.name = "%s.%s"%(self.name, "ackdata")
def __init__(self, mtu=None, **kwargs): """Constructor. :param mtu: Maximum transmission unit. """ if mtu is None: mtu = self.__class__.mtu self.mtu = mtu self.__cif = None Element.__init__(self, **kwargs)
def __init__(self, **kwargs): """Constructor.""" self.halduplex = None self.__ifstate = CHANNELIF_RX # set up events and buffer self.txdata = SimEvent(name="txdata") self.txdone = SimEvent(name="txdone") self.rxdata = SimEvent(name="rxdata") self.rxdone = SimEvent(name="rxdone") self.rxbuffer = [] Element.__init__(self, **kwargs) # rename events self.txdata.name = "%s(%s).txdata"%(self.name, self.uid) self.txdone.name = "%s(%s).txdone"%(self.name, self.uid) self.rxdata.name = "%s(%s).rxdata"%(self.name, self.uid) self.rxdone.name = "%s(%s).rxdone"%(self.name, self.uid)
def __init__(self, broadcast=None, nulladdr=None, mtu=None, **kwargs): """Constructor. :param broadcast: Broadcast address. :param nulladdr: Null address (used by `ARP`). :param mtu: Maximum transmission unit. If the `broadcast` address is not specified, then the default broadcast address is used. """ if broadcast is None: broadcast = self.__class__.broadcast if nulladdr is None: nulladdr = self.__class__.nulladdr if mtu is None: mtu = self.__class__.mtu self.broadcast = broadcast self.mtu = mtu self.__addr = None self.__ptype = None Element.__init__(self, **kwargs) assert self.hasport("RXD") and self.hasport("TXD"), ( "[NET]: Invalid Port configuration! " + "Must have 'RXD' and 'TXD' ports!" )
def __init__(self, **kwargs): """Constructor.""" self.transmitter = Dot11N_Transmitter() self.receiver = Dot11N_Receiver() self.rxinput = None Element.__init__(self, **kwargs)
def __init__(self, **kwargs): """Constructor.""" self.__timer = None Element.__init__(self, **kwargs)
def __init__(self, **kwargs): """Constructor.""" self.__tic = None self.__pos = None self.__vec = None Element.__init__(self, **kwargs)
def __init__(self, **kwargs): """Constructor.""" self.base = None self.__db = {} Element.__init__(self, **kwargs)
def __init__(self, **kwargs): self.__listen = {} self.__table = {} self.__useshared = False Element.__init__(self, **kwargs)