#include <IPathFinder.h>
Dérivée par NoganePathFinder.
Fonctions membres publiques | |
virtual | ~IPathFinder () |
virtual void | init (const StationsDB &stationDB, int stepDuration, int changeLineDuration)=0 |
virtual boost::shared_ptr < PathResult > | find (const StationsDB &stationDB, SharedConstStation startStation, const std::vector< SharedConstStation > &interStations, SharedConstStation endStation, bool isOptim) const =0 |
Interface pour les class qui doivent chercher le chemin le plus court
virtual IPathFinder::~IPathFinder | ( | ) | [inline, virtual] |
Virtual pour permettre l'héritage
virtual boost::shared_ptr<PathResult> IPathFinder::find | ( | const StationsDB & | stationDB, | |
SharedConstStation | startStation, | |||
const std::vector< SharedConstStation > & | interStations, | |||
SharedConstStation | endStation, | |||
bool | isOptim | |||
) | const [pure 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émenté dans NoganePathFinder.
virtual void IPathFinder::init | ( | const StationsDB & | stationDB, | |
int | stepDuration, | |||
int | changeLineDuration | |||
) | [pure 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émenté dans NoganePathFinder.