daemon/core/emane/emane.py
def newplatformxmldoc(self, values, otadev=None, eventdev=None):
        ''' Start a new platform XML file. Use global EMANE config values
            as keys. Override OTA manager and event service devices if
            specified (in order to support Raw Transport).
        '''
        doc = self.xmldoc("platform")
        plat = doc.getElementsByTagName("platform").pop()
        names = list(self.emane_config.getnames())
        platform_names = names[:len(self.emane_config._confmatrix_platform)]
        platform_names.remove('platform_id_start')
        platform_values = list(values)
        if otadev:
            i = platform_names.index('otamanagerdevice')
            platform_values[i] = otadev
        if eventdev:
            i = platform_names.index('eventservicedevice')
            platform_values[i] = eventdev
        # append all platform options (except starting id) to doc
        map( lambda n: plat.appendChild(self.xmlparam(doc, n, \
                        self.emane_config.valueof(n, platform_values))), \
                        platform_names)
        return doc
 Start a new platform XML file. Use global EMANE config values
            as keys. Override OTA manager and event service devices if
            specified (in order to support Raw Transport).
        
Start a new platform XML file. Use global EMANE config values
as keys. Override OTA manager and event service devices if
specified (in order to support Raw Transport).
Start a new platform XML file . Use global EMANE config values as keys . Override OTA manager and event service devices if specified ( in order to support Raw Transport ) .
def newplatformxmldoc(self, values, otadev=None, eventdev=None):
        doc = self.xmldoc("platform")
        plat = doc.getElementsByTagName("platform").pop()
        names = list(self.emane_config.getnames())
        platform_names = names[:len(self.emane_config._confmatrix_platform)]
        platform_names.remove('platform_id_start')
        platform_values = list(values)
        if otadev:
            i = platform_names.index('otamanagerdevice')
            platform_values[i] = otadev
        if eventdev:
            i = platform_names.index('eventservicedevice')
            platform_values[i] = eventdev
        map( lambda n: plat.appendChild(self.xmlparam(doc, n, \
                        self.emane_config.valueof(n, platform_values))), \
                        platform_names)
        return doc
def newplatformxmldoc ( self , values , otadev = None , eventdev = None ) : doc = self . xmldoc ( "platform" ) plat = doc . getElementsByTagName ( "platform" ) . pop ( ) names = list ( self . emane_config . getnames ( ) ) platform_names = names [ : len ( self . emane_config . _confmatrix_platform ) ] platform_names . remove ( 'platform_id_start' ) platform_values = list ( values ) if otadev : i = platform_names . index ( 'otamanagerdevice' ) platform_values [ i ] = otadev if eventdev : i = platform_names . index ( 'eventservicedevice' ) platform_values [ i ] = eventdev map ( lambda n : plat . appendChild ( self . xmlparam ( doc , n , self . emane_config . valueof ( n , platform_values ) ) ) , platform_names ) return doc
Start a new platform XML file.
Start a new platform XML file .
''' Start a new platform XML file. Use global EMANE config values
            as keys. Override OTA manager and event service devices if
            specified (in order to support Raw Transport).
        ''' # append all platform options (except starting id) to doc
self
values
otadev
eventdev