#include <PathSearchAI.H>
Collaboration diagram for PathSearchAI:

Public Member Functions | |
| PathSearchAI (DBInterface *db) | |
| Default Constructor. | |
| ~PathSearchAI () | |
| Default Destructor. | |
| path_t * | findAtoBPath (seg_t *, seg_t *, userPrefs_t) |
| Method will return a path from seg_t to seg_t given user preferences (and unique seg_t's). | |
| path_t * | findAtoAPath (seg_t *, double, userPrefs_t) |
| Method will return a path from seg_t to itself in a loop route of the given distance. | |
Private Member Functions | |
| double | heuristic (seg_t *, seg_t *, seg_t *, userPrefs_t) |
| This function will set and return the heuristic value for a street segment. It relies on user preferences that are passed in, and street data from the database. The values returned will determine which neighbor is the best. | |
| double | heuristicAtoA (seg_t *, seg_t *, double, double, userPrefs_t) |
| Same as heuristic as heuristic(...), but modified to create a loop route. | |
| void | insertInOpenList (vector< AIseg_t > &list, seg_t *goal, AIseg_t curr, double heurVal, userPrefs_t prefs) |
| Uses an iterator to insert an element into the open list. | |
| bool | inList (vector< AIseg_t > list, AIseg_t segment) |
| Returns a boolean saying if the element was in the given list. | |
| AIseg_t | findParent (vector< AIseg_t > list, seg_t *child) |
| Searches the given list for the parent of the given child. | |
Private Attributes | |
| DBInterface * | m_db |
| Pointer to the database. | |
|
|
Default Constructor.
|
|
|
Default Destructor.
|
|
||||||||||||||||
|
Method will return a path from seg_t to itself in a loop route of the given distance.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Method will return a path from seg_t to seg_t given user preferences (and unique seg_t's).
|
|
||||||||||||
|
Searches the given list for the parent of the given child.
|
|
||||||||||||||||||||
|
This function will set and return the heuristic value for a street segment. It relies on user preferences that are passed in, and street data from the database. The values returned will determine which neighbor is the best.
|
|
||||||||||||||||||||||||
|
Same as heuristic as heuristic(...), but modified to create a loop route.
|
|
||||||||||||
|
Returns a boolean saying if the element was in the given list.
|
|
||||||||||||||||||||||||
|
Uses an iterator to insert an element into the open list.
|
|
|
Pointer to the database.
|
1.4.0