daemon/core/emane/ieee80211abg.py
def buildnemxmlfiles(self, e, ifc):
        ''' Build the necessary nem, mac, and phy XMLs in the given path.
            If an individual NEM has a nonstandard config, we need to build
            that file also. Otherwise the WLAN-wide
            nXXemane_ieee80211abgnem.xml, nXXemane_ieee80211abgemac.xml,
            nXXemane_ieee80211abgphy.xml are used.
        '''
        values = e.getifcconfig(self.objid, self._name,
                                self.getdefaultvalues(), ifc)
        if values is None:
            return
        nemdoc = e.xmldoc("nem")
        nem = nemdoc.getElementsByTagName("nem").pop()
        nem.setAttribute("name", "ieee80211abg NEM")
        e.appendtransporttonem(nemdoc, nem, self.objid, ifc)
        mactag = nemdoc.createElement("mac")
        mactag.setAttribute("definition", self.macxmlname(ifc))
        nem.appendChild(mactag)
        phytag = nemdoc.createElement("phy")
        phytag.setAttribute("definition", self.phyxmlname(ifc))
        nem.appendChild(phytag)
        e.xmlwrite(nemdoc, self.nemxmlname(ifc))

        macdoc = e.xmldoc("mac")
        mac = macdoc.getElementsByTagName("mac").pop()
        mac.setAttribute("name", "ieee80211abg MAC")
        mac.setAttribute("library", "ieee80211abgmaclayer")

        names = self.getnames()
        macnames = names[:len(self._confmatrix_mac)]
        phynames = names[len(self._confmatrix_mac):]

        # append all MAC options to macdoc
        if 'EventService' in globals():
            for macname in macnames:
                mac9xnvpairlist = self.get9xmacparamequivalent(macname, values)
                for nvpair in mac9xnvpairlist:
                    mac.appendChild(e.xmlparam(macdoc, nvpair[0], nvpair[1]))
        else:
            map( lambda n: mac.appendChild(e.xmlparam(macdoc, n, \
                                       self.valueof(n, values))), macnames)
            
        e.xmlwrite(macdoc, self.macxmlname(ifc))

        phydoc = EmaneUniversalModel.getphydoc(e, self, values, phynames)
        e.xmlwrite(phydoc, self.phyxmlname(ifc))
 Build the necessary nem, mac, and phy XMLs in the given path.
            If an individual NEM has a nonstandard config, we need to build
            that file also. Otherwise the WLAN-wide
            nXXemane_ieee80211abgnem.xml, nXXemane_ieee80211abgemac.xml,
            nXXemane_ieee80211abgphy.xml are used.
        
Build the necessary nem, mac, and phy XMLs in the given path.
If an individual NEM has a nonstandard config, we need to build
that file also.
Build the necessary nem mac and phy XMLs in the given path . If an individual NEM has a nonstandard config we need to build that file also .
def buildnemxmlfiles(self, e, ifc):
        values = e.getifcconfig(self.objid, self._name,
                                self.getdefaultvalues(), ifc)
        if values is None:
            return
        nemdoc = e.xmldoc("nem")
        nem = nemdoc.getElementsByTagName("nem").pop()
        nem.setAttribute("name", "ieee80211abg NEM")
        e.appendtransporttonem(nemdoc, nem, self.objid, ifc)
        mactag = nemdoc.createElement("mac")
        mactag.setAttribute("definition", self.macxmlname(ifc))
        nem.appendChild(mactag)
        phytag = nemdoc.createElement("phy")
        phytag.setAttribute("definition", self.phyxmlname(ifc))
        nem.appendChild(phytag)
        e.xmlwrite(nemdoc, self.nemxmlname(ifc))
        macdoc = e.xmldoc("mac")
        mac = macdoc.getElementsByTagName("mac").pop()
        mac.setAttribute("name", "ieee80211abg MAC")
        mac.setAttribute("library", "ieee80211abgmaclayer")
        names = self.getnames()
        macnames = names[:len(self._confmatrix_mac)]
        phynames = names[len(self._confmatrix_mac):]
        if 'EventService' in globals():
            for macname in macnames:
                mac9xnvpairlist = self.get9xmacparamequivalent(macname, values)
                for nvpair in mac9xnvpairlist:
                    mac.appendChild(e.xmlparam(macdoc, nvpair[0], nvpair[1]))
        else:
            map( lambda n: mac.appendChild(e.xmlparam(macdoc, n, \
                                       self.valueof(n, values))), macnames)
        e.xmlwrite(macdoc, self.macxmlname(ifc))
        phydoc = EmaneUniversalModel.getphydoc(e, self, values, phynames)
        e.xmlwrite(phydoc, self.phyxmlname(ifc))
def buildnemxmlfiles ( self , e , ifc ) : values = e . getifcconfig ( self . objid , self . _name , self . getdefaultvalues ( ) , ifc ) if values is None : return nemdoc = e . xmldoc ( "nem" ) nem = nemdoc . getElementsByTagName ( "nem" ) . pop ( ) nem . setAttribute ( "name" , "ieee80211abg NEM" ) e . appendtransporttonem ( nemdoc , nem , self . objid , ifc ) mactag = nemdoc . createElement ( "mac" ) mactag . setAttribute ( "definition" , self . macxmlname ( ifc ) ) nem . appendChild ( mactag ) phytag = nemdoc . createElement ( "phy" ) phytag . setAttribute ( "definition" , self . phyxmlname ( ifc ) ) nem . appendChild ( phytag ) e . xmlwrite ( nemdoc , self . nemxmlname ( ifc ) ) macdoc = e . xmldoc ( "mac" ) mac = macdoc . getElementsByTagName ( "mac" ) . pop ( ) mac . setAttribute ( "name" , "ieee80211abg MAC" ) mac . setAttribute ( "library" , "ieee80211abgmaclayer" ) names = self . getnames ( ) macnames = names [ : len ( self . _confmatrix_mac ) ] phynames = names [ len ( self . _confmatrix_mac ) : ] if 'EventService' in globals ( ) : for macname in macnames : mac9xnvpairlist = self . get9xmacparamequivalent ( macname , values ) for nvpair in mac9xnvpairlist : mac . appendChild ( e . xmlparam ( macdoc , nvpair [ 0 ] , nvpair [ 1 ] ) ) else : map ( lambda n : mac . appendChild ( e . xmlparam ( macdoc , n , self . valueof ( n , values ) ) ) , macnames ) e . xmlwrite ( macdoc , self . macxmlname ( ifc ) ) phydoc = EmaneUniversalModel . getphydoc ( e , self , values , phynames ) e . xmlwrite ( phydoc , self . phyxmlname ( ifc ) )
Build the necessary nem, mac, and phy XMLs in the given path.
Build the necessary nem mac and phy XMLs in the given path .
''' Build the necessary nem, mac, and phy XMLs in the given path.
            If an individual NEM has a nonstandard config, we need to build
            that file also. Otherwise the WLAN-wide
            nXXemane_ieee80211abgnem.xml, nXXemane_ieee80211abgemac.xml,
            nXXemane_ieee80211abgphy.xml are used.
        ''' # append all MAC options to macdoc
self
e
ifc