#include <NoganePathFinder.h>
Est dérivée de IPathFinder.
Fonctions membres publiques | |
NoganePathFinder () | |
virtual void | init (const StationsDB &stationDB, int stepDuration, int changeLineDuration) |
virtual boost::shared_ptr < PathResult > | find (const StationsDB &stationDB, SharedConstStation X, const std::vector< SharedConstStation > &stepList, SharedConstStation Y, bool optimizeStep) const |
NoganePathFinder::NoganePathFinder | ( | ) |
boost::shared_ptr< PathResult > NoganePathFinder::find | ( | const StationsDB & | stationDB, | |
SharedConstStation | startStation, | |||
const std::vector< SharedConstStation > & | interStations, | |||
SharedConstStation | endStation, | |||
bool | isOptim | |||
) | const [virtual] |
Recherche le chemin le plus rapide. Cette fonction peut être appelée plusieurs fois.
[in] | stationDB | Base de donnée des stations |
[in] | startStation | Station de départ |
[in] | interStations | Liste des stations intermédiaires |
[in] | endStation | Station d'arrivée |
[in] | isOptim | True si l'ordre des stations intermédiaires peut être optimisé |
Implémente IPathFinder.
void NoganePathFinder::init | ( | const StationsDB & | stationDB, | |
int | stepDuration, | |||
int | changeLineDuration | |||
) | [virtual] |
Initialise le contenu du PathFinder à partir des données qui lui sont passées. Si ces données changent, cette fonction doit pouvoir être rappelée.
[in] | stationDB | Base de donnée des stations |
[in] | stepDuration | Durée entre deux stations, en secondes |
[in] | changeLineDuration | Durée d'une correspondance, en secondes |
Implémente IPathFinder.