public Track addTrack(String name,String type){
  Track track=getTrackByName(name,type);
  if (track == null) {
    _IdNumber++;
    String id=_id + "s" + Integer.toString(_IdNumber);
    log.debug("Adding new ({}) to ({}) track name ({}) id: {}",type,getName(),name,id);
    track=new Track(id,name,type,this);
    register(track);
  }
  resetMoves();
  return track;
}

public Track addTrack ( String name , String type ) { Track track = getTrackByName ( name , type ) ; if ( track == null ) { _IdNumber ++ ; String id = _id + "s" + Integer . toString ( _IdNumber ) ; log . debug ( "Adding new ({}) to ({}) track name ({}) id: {}" , type , getName ( ) , name , id ) ; track = new Track ( id , name , type , this ) ; register ( track ) ; } resetMoves ( ) ; return track ; }
adds a track to this location . valid track types are spurs , yards , staging and interchange tracks .
