Пример #1
0
 def reset(self):
     ''' Reset all simulation objects. '''
     self.state = bs.INIT
     self.syst = -1.0
     self.simt = 0.0
     self.simdt = 1.0
     simtime.reset()
     self.utc = datetime.datetime.utcnow().replace(hour=0, minute=0, second=0, microsecond=0)
     self.ffmode = True
     self.set_dtmult(1.0)
     bs.navdb.reset()
     bs.traf.reset()
     simtime.reset()
     core.reset()
     bs.stack.reset()
     datalog.reset()
     areafilter.reset()
     bs.scr.reset()
     plotter.reset()
     #print('endreset')
     self.op()
Пример #2
0
 def reset(self):
     ''' Reset all simulation objects. '''
     self.state = bs.INIT
     self.syst = -1.0
     self.simt = 0.0
     self.simdt = bs.settings.simdt
     simtime.reset()
     self.utc = datetime.datetime.utcnow().replace(hour=0,
                                                   minute=0,
                                                   second=0,
                                                   microsecond=0)
     self.ffmode = False
     self.set_dtmult(1.0)
     plugin.reset()
     bs.navdb.reset()
     bs.traf.reset()
     bs.stack.reset()
     datalog.reset()
     areafilter.reset()
     bs.scr.reset()
     plotter.reset()