#include <search.h>
Inheritance diagram for PathFind::Search:
Definition at line 27 of file search.h.
Public Member Functions | |
Search () | |
virtual | ~Search () |
virtual StatisticsCollection | createStatistics ()=0 |
Create a StatisticsCollection. | |
virtual bool | findPath (const Environment &env, int start, int target)=0 |
Find a path. | |
long long int | getNodesLimit () const |
virtual const vector< int > & | getPath () const=0 |
virtual const vector< char > & | getVisitedNodes () const=0 |
Get a vector with char labels for each visited node. | |
virtual const StatisticsCollection & | getStatistics () const=0 |
Get statistics of last search. | |
void | setNodesLimit (long long int nodesLimit) |
Set nodes limit for search engine. | |
Public Attributes | |
long long int | m_nodesLimit |
|
Definition at line 16 of file search.cpp. References m_nodesLimit. |
|
Definition at line 21 of file search.cpp. |
|
Create a StatisticsCollection. Contains Statistics instances for all values tracked. Useful for keeping accumulated statistics by creating the collection and merging the statistics of a search as returned by getStatistics(). Implemented in PathFind::AStar< MARKER, CLOSED >, PathFind::FringeSearch< MARKER >, and PathFind::IDAStar. |
|
Find a path.
Implemented in PathFind::AStar< MARKER, CLOSED >, PathFind::FringeSearch< MARKER >, and PathFind::IDAStar. |
|
Definition at line 48 of file search.h. References m_nodesLimit. |
|
Implemented in PathFind::AStar< MARKER, CLOSED >, PathFind::FringeSearch< MARKER >, and PathFind::IDAStar. |
|
Get statistics of last search.
Implemented in PathFind::AStar< MARKER, CLOSED >, PathFind::FringeSearch< MARKER >, and PathFind::IDAStar. |
|
Get a vector with char labels for each visited node. Space char means not visited, otherwise the char can have different values and meanings depending on the concrete search engine. Implemented in PathFind::AStar< MARKER, CLOSED >, PathFind::FringeSearch< MARKER >, and PathFind::IDAStar. |
|
Set nodes limit for search engine. The default is -1 and means unlimited search. The nodes limit is a hint only, the search engine may ignore it. Reimplemented in PathFind::AStar< MARKER, CLOSED >. Definition at line 71 of file search.h. References m_nodesLimit. |
|
Definition at line 78 of file search.h. Referenced by getNodesLimit(), Search(), PathFind::IDAStar::searchPathIdaStar(), setNodesLimit(), and PathFind::AStar< MARKER, CLOSED >::setNodesLimit(). |