Esempio n. 1
0
        /// <summary>
        /// Generates instructions.
        /// </summary>
        /// <param name="planner"></param>
        /// <param name="route"></param>
        /// <param name="point"></param>
        /// <returns></returns>
        public static List <Instruction> Generate(MicroPlanner planner, Route route, AggregatedPoint point)
        {
            if (point == null)
            {
                throw new ArgumentNullException("route");
            }
            if (planner == null)
            {
                throw new ArgumentNullException("planner");
            }

            return(planner.Plan(route, point));
        }
Esempio n. 2
0
        /// <summary>
        /// Generates instructions.
        /// </summary>
        /// <param name="planner"></param>
        /// <param name="point"></param>
        /// <param name="interpreter"></param>
        /// <param name="languageGenerator"></param>
        /// <returns></returns>
        public static List <Instruction> Generate(MicroPlanner planner, AggregatedPoint point, IRoutingInterpreter interpreter, ILanguageGenerator languageGenerator)
        {
            if (point == null)
            {
                throw new ArgumentNullException("route");
            }
            if (planner == null)
            {
                throw new ArgumentNullException("planner");
            }
            if (interpreter == null)
            {
                throw new ArgumentNullException("interpreter");
            }
            if (languageGenerator == null)
            {
                throw new ArgumentNullException("languageGenerator");
            }

            return(planner.Plan(point));
        }