Пример #1
0
        public Boolean routeOutContainsLocation(Location location) {

            foreach (Location loc in routeOut) {
                if (loc.getName().Equals(location.getName())) {
                    return true;
                }
            }
            return false;
        }
Пример #2
0
 public void addLocationToRouteOut(Location location) {
     routeOut.AddLast(location);
     location.addRoute(this);
 }