Ejemplo n.º 1
0
        public Boolean routeOutContainsLocation(Location location) {

            foreach (Location loc in routeOut) {
                if (loc.getName().Equals(location.getName())) {
                    return true;
                }
            }
            return false;
        }
Ejemplo n.º 2
0
 public void addLocationToRouteOut(Location location) {
     routeOut.AddLast(location);
     location.addRoute(this);
 }