def stop(): ''' Stop the PlatoonManager ''' global _mgr, _mgr_listenerID if _mgr is not None: _mgr.stop() traci.removeStepListener(_mgr_listenerID) _mgr = None
def removeGapController(vehID): ''' Removes any current gap controller ''' global _activeGapControllers if DEBUG_GAP_CONTROL: print ("removeGapController(%s)\nactive: %s." % (vehID, _activeGapControllers)) if vehID in _activeGapControllers: listenerID = _activeGapControllers[vehID] traci.removeStepListener(listenerID)
def removeGapController(vehID): ''' Removes any current gap controller ''' global _activeGapControllers if DEBUG_GAP_CONTROL: print("removeGapController(%s)\nactive: %s." % (vehID, _activeGapControllers)) if vehID in _activeGapControllers: listenerID = _activeGapControllers[vehID] traci.removeStepListener(listenerID)