opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.12k stars 1.01k forks source link

Create a non-static version of AStar called GenericAStar #392

Closed novalis closed 12 years ago

novalis commented 12 years ago

I propose creating a non-static version of AStar called GenericAStar. AStar would be refactored to create a singleton instance of GenericAStar and pass calls on to that (keeping backwards compatibility with existing code). By making the GenericAStar search methods non-static, it means that the behavior of the AStar algorithm can be modified by setting getters and setters on the search instance to change parameters, strategies, etc. This makes it easier to change the behavior of AStar, as opposed to the current approach, which is to put everything in TraverseOptions, which is now getting huge.

novalis commented 12 years ago

Commited in r1309

--bdferris