Property | Type | Description | |
---|---|---|---|
cities | |||
routes | List |
Method | Description | |
---|---|---|
FindCities ( TransportModes tmode ) : Fhnw.Ecnf.RoutePlanner.RoutePlannerLib.City[] | ||
FindCitiesBetween ( string fromName, string toName ) : List |
Find all cities between 2 cities
|
|
FindShortestRouteBetween ( string fromCity, string toCity, TransportModes mode ) : List | ||
FindShortestRouteBetween ( string fromCity, string toCity, TransportModes mode, IProgress |
Calculates and returns the shortest route between the passed cities.
|
|
FindShortestRouteBetweenAsync ( string fromCity, string toCity, TransportModes mode, IProgress
|
||
GoFindShortestRouteBetween ( string fromCity, string toCity, TransportModes mode, IProgress
|
||
ReadRoutes ( string filename ) : int |
Reads a list of links from the given file. Reads only links where the cities exist.
|
|
Routes ( |
Initializes the Routes with the cities.
|
Method | Description | |
---|---|---|
FindLink ( |
Finds the link between two cities.
|
|
FindPath ( List |
||
NotifyObservers ( string fromCity, string toCity, TransportModes mode ) : void |
Method | Description | |
---|---|---|
FindNeighbours ( |
Finds all neighbor cities of a city.
|
|
GetCitiesOnRoute ( |
||
SearchShortestPath ( TransportModes mode, List |
Searches the shortest path for cities and the given links
|
public FindCities ( TransportModes tmode ) : Fhnw.Ecnf.RoutePlanner.RoutePlannerLib.City[] | ||
tmode | TransportModes | |
return | Fhnw.Ecnf.RoutePlanner.RoutePlannerLib.City[] |
public FindCitiesBetween ( string fromName, string toName ) : List |
||
fromName | string | source city |
toName | string | target city |
return | List |
protected FindLink ( |
||
c1 | first city | |
c2 | second city | |
t | TransportModes | |
return |
protected FindPath ( List |
||
citiesOnRoute | List |
|
mode | TransportModes | |
return | List |
public FindShortestRouteBetween ( string fromCity, string toCity, TransportModes mode ) : List | ||
fromCity | string | |
toCity | string | |
mode | TransportModes | |
return | List |
public abstract FindShortestRouteBetween ( string fromCity, string toCity, TransportModes mode, IProgress |
||
fromCity | string | |
toCity | string | |
mode | TransportModes | |
reportProgress | IProgress |
|
return | List |
public FindShortestRouteBetweenAsync ( string fromCity, string toCity, TransportModes mode, IProgress
|
||
fromCity | string | |
toCity | string | |
mode | TransportModes | |
reportProgress | IProgress |
|
return | Task
|
public GoFindShortestRouteBetween ( string fromCity, string toCity, TransportModes mode, IProgress
|
||
fromCity | string | |
toCity | string | |
mode | TransportModes | |
reportProgress | IProgress |
|
return | Task
|
protected NotifyObservers ( string fromCity, string toCity, TransportModes mode ) : void | ||
fromCity | string | |
toCity | string | |
mode | TransportModes | |
return | void |
public ReadRoutes ( string filename ) : int | ||
filename | string | name of links file |
return | int |
public Routes ( |
||
cities | ||
return | System.Diagnostics |
protected Cities,Fhnw.Ecnf.RoutePlanner.RoutePlannerLib cities | ||
return |