@Override public String testDestination(Location destination,Track track){
  String status=super.testDestination(destination,track);
  if (!status.equals(Track.OKAY)) {
    return status;
  }
  if (track == null) {
    return status;
  }
  return track.checkSchedule(this);
}

@ Override public String testDestination ( Location destination , Track track ) { String status = super . testDestination ( destination , track ) ; if ( ! status . equals ( Track . OKAY ) ) { return status ; } if ( track == null ) { return status ; } return track . checkSchedule ( this ) ; }
used to determine if a car can be set out at a destination ( location ) . track is optional . in addition to all of the tests that testlocation performs , spurs with schedules are also checked .
