Ejemplo n.º 1
0
 public RoutingContext(RoutingContext cp) {
   this.config = cp.config;
   this.map.putAll(cp.map);
   this.useBaseMap = cp.useBaseMap;
   this.reverseMap.putAll(cp.reverseMap);
   this.nativeLib = cp.nativeLib;
   // copy local data and clear caches
   for (RoutingSubregionTile tl : subregionTiles) {
     if (tl.isLoaded()) {
       subregionTiles.add(tl);
       for (RouteSegment rs : tl.routes.valueCollection()) {
         RouteSegment s = rs;
         while (s != null) {
           s.parentRoute = null;
           s.parentSegmentEnd = 0;
           s.distanceFromStart = 0;
           s.distanceToEnd = 0;
           s = s.next;
         }
       }
     }
   }
 }