Classe abstraite pour l'implémentation des politiques.
Methods
|
|
choisirStation
choisirTaxi
info
|
|
choisirStation
|
choisirStation ( self, taxi )
Retourne une station d'après la politique courante.
- taxi (Taxi)
- Le taxi qui va à une station
- retourne (Station, Chemin)
- La station
|
|
choisirTaxi
|
choisirTaxi ( self, client )
Retourne un taxi pour prendre en charge un client
d'après la politique courante.
- client (EvClient)
- Le client qui veut faire la course
- retourne (Tuple(Taxi, Chemin))
- Le taxi qui va prendre en charge la course
|
|
info
|
info ( self )
Retourne un tuple contenant le nom de la politique et une
description de celle-ci. retourne (Tuple(nom, description))
|
|