C# Class TheAirline.Models.Passengers.PassengerRouteFinder

Afficher le fichier Open project: TheAirlineProject/tap-desktop

Méthodes publiques

Méthode Description
CalculateDistance ( Airport start ) : void

Calculates the distance from the start airport to all other airports

GetNodeWithSmallestDistance ( ) : Airport

Returns the airport with the smallest distance

GetPathTo ( Airport d ) : List

Gets the path to an airport

PassengerRouteFinder ( List nodes ) : System.Collections.Generic

Constructor

Private Methods

Méthode Description
GetNeighbors ( Airport n ) : IEnumerable

Returns all airports with a route from the an airport

getDistanceBetween ( Airport o, Airport d ) : double

Returns the distance between two airports

Method Details

CalculateDistance() public méthode

Calculates the distance from the start airport to all other airports
public CalculateDistance ( Airport start ) : void
start TheAirline.Models.Airports.Airport Startknoten
Résultat void

GetNodeWithSmallestDistance() public méthode

Returns the airport with the smallest distance
public GetNodeWithSmallestDistance ( ) : Airport
Résultat TheAirline.Models.Airports.Airport

GetPathTo() public méthode

Gets the path to an airport
public GetPathTo ( Airport d ) : List
d TheAirline.Models.Airports.Airport /// Destination ///
Résultat List

PassengerRouteFinder() public méthode

Constructor
public PassengerRouteFinder ( List nodes ) : System.Collections.Generic
nodes List All airports
Résultat System.Collections.Generic