C# 클래스 TheAirline.Models.Passengers.PassengerRouteFinder

파일 보기 프로젝트 열기: TheAirlineProject/tap-desktop

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CalculateDistance() 공개 메소드

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

GetNodeWithSmallestDistance() 공개 메소드

Returns the airport with the smallest distance
public GetNodeWithSmallestDistance ( ) : Airport
리턴 TheAirline.Models.Airports.Airport

GetPathTo() 공개 메소드

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

PassengerRouteFinder() 공개 메소드

Constructor
public PassengerRouteFinder ( List nodes ) : System.Collections.Generic
nodes List All airports
리턴 System.Collections.Generic