コード例 #1
0
        protected override void FindTrips(TripQuery query)
        {
            if (query.Stops == NumberOfStops)
                return;

            var routes = GetRoutesFromStartingTown(query.StartingTown);

            query.Response.NumberOfTrips += GetRoutesThatAreFinished(query.Desination, routes);

            query.Stops++;

            LookAtRoutesThatCouldWork(query.Desination, query.Stops, query.Response, routes);
        }
コード例 #2
0
 protected abstract void FindTrips(TripQuery query);