protected void reset ( ) { for ( RouteMap . Entry < String , RouteAsImpl > e = this . route . head ( ) , end = this . route . tail ( ) ; ( e = e . getNext ( ) ) != end ; ) { String key = e . getKey ( ) ; RouteAsImpl routeAs = e . getValue ( ) ; routeAs . setM3uaManagement ( this . m3uaManagement ) ; routeAs . reset ( ) ; As [ ] asList = routeAs . getAsArray ( ) ; try { String [ ] keys = key . split ( KEY_SEPARATOR ) ; int dpc = Integer . parseInt ( keys [ 0 ] ) ; for ( count = 0 ; count < asList . length ; count ++ ) { AsImpl asImpl = ( AsImpl ) asList [ count ] ; if ( asImpl != null ) { this . addAsToDPC ( dpc , asImpl ) ; } } } catch ( Exception ex ) { logger . error ( String . format ( "Error while adding key=%s to As list=%s" , key , Arrays . toString ( asList ) ) ) ; } } }
Reset the routeTable . Called after the persistance state of route is read from xml file .