Class PlanningApp


  • public class PlanningApp
    extends java.lang.Object
    The PlanningApp class of rides.planning module : This class contains all algorithms that are needed to plan a ride given two points. This class is used by any user when he needs to plan a ride. It will return, in general, the stationID.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlanningApp()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<Station> getBestStation​(MyVelibSystem system, java.awt.Point coordsStart, java.awt.Point coordsEnd, Bicycle bicycle)
      Compute the best start and end station according to the least start and end distances strategy.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlanningApp

        public PlanningApp()
    • Method Detail

      • getBestStation

        public static java.util.List<Station> getBestStation​(MyVelibSystem system,
                                                             java.awt.Point coordsStart,
                                                             java.awt.Point coordsEnd,
                                                             Bicycle bicycle)
        Compute the best start and end station according to the least start and end distances strategy.
        Parameters:
        system - : system the user is using
        coordsStart - : where the user wants to start the location
        coordsEnd - : where the user wants to stop the location
        bicycle - : the bicycle the user want to rent
        Returns:
        best start and end stations