public Boolean routeOutContainsLocation(Location location) { foreach (Location loc in routeOut) { if (loc.getName().Equals(location.getName())) { return true; } } return false; }
public void addLocationToRouteOut(Location location) { routeOut.AddLast(location); location.addRoute(this); }