def parsemap(self, mapstr):
        ''' Parse a node mapping string, given as a configuration parameter.
        '''
        self.nodemap = {}
        if mapstr.strip() == '':
            return
        for pair in mapstr.split(','):
            parts = pair.split(':')
            try:
                if len(parts) != 2:
                    raise ValueError
                self.nodemap[int(parts[0])] = int(parts[1])
            except __HOLE__:
                self.session.warn("ns-2 mobility node map error")
                return
dataset/ETHPy150Open coreemu/core/daemon/core/mobility.py/Ns2ScriptedMobility.parsemap