public RouteLocation addLocation(Location location){
  _IdNumber++;
  _sequenceNum++;
  String id=_id + "r" + Integer.toString(_IdNumber);
  log.debug("adding new location to ({}) id: {}",getName(),id);
  RouteLocation rl=new RouteLocation(id,location);
  rl.setSequenceId(_sequenceNum);
  Integer old=Integer.valueOf(_routeHashTable.size());
  _routeHashTable.put(rl.getId(),rl);
  setDirtyAndFirePropertyChange(LISTCHANGE_CHANGED_PROPERTY,old,Integer.valueOf(_routeHashTable.size()));
  rl.addPropertyChangeListener(this);
  return rl;
}

public RouteLocation addLocation ( Location location ) { _IdNumber ++ ; _sequenceNum ++ ; String id = _id + "r" + Integer . toString ( _IdNumber ) ; log . debug ( "adding new location to ({}) id: {}" , getName ( ) , id ) ; RouteLocation rl = new RouteLocation ( id , location ) ; rl . setSequenceId ( _sequenceNum ) ; Integer old = Integer . valueOf ( _routeHashTable . size ( ) ) ; _routeHashTable . put ( rl . getId ( ) , rl ) ; setDirtyAndFirePropertyChange ( LISTCHANGE_CHANGED_PROPERTY , old , Integer . valueOf ( _routeHashTable . size ( ) ) ) ; rl . addPropertyChangeListener ( this ) ; return rl ; }
adds a location to the end of this route
