def startup(self):
        ''' Start running the script if autostart is enabled.
            Move node to initial positions when any autostart time is specified.
            Ignore the script if autostart is an empty string (can still be
            started via GUI controls).
        '''
        if self.autostart == '':
            if self.verbose:
                self.session.info("not auto-starting ns-2 script for %s" % \
                                  self.wlan.name)
            return
        try:
            t = float(self.autostart)
        except __HOLE__:
            self.session.warn("Invalid auto-start seconds specified '%s' for " \
                              "%s" % (self.autostart, self.wlan.name))
            return
        self.movenodesinitial()
        if self.verbose:
            self.session.info("scheduling ns-2 script for %s autostart at %s" \
                              % (self.wlan.name, t))
        self.state = self.STATE_RUNNING
        self.session.evq.add_event(t, self.run)
dataset/ETHPy150Open coreemu/core/daemon/core/mobility.py/Ns2ScriptedMobility.startup