C# 클래스 Fhnw.Ecnf.RoutePlanner.RoutePlannerLib.Link

Represents a link between two cities with its distance
상속: IComparable
파일 보기 프로젝트 열기: platzhersh/FHNW-Java-Projekte 1 사용 예제들

공개 메소드들

메소드 설명
CompareTo ( object o ) : int

Specifies "distance" as default compare criteria

Link ( City fromCity, City toCity, double distance ) : System
Link ( City fromCity, City toCity, double distance, TransportModes transportMode ) : System

비공개 메소드들

메소드 설명
IsIncludedIn ( List cities ) : bool

checks if both cities of the link are included in the passed city list

메소드 상세

CompareTo() 공개 메소드

Specifies "distance" as default compare criteria
public CompareTo ( object o ) : int
o object
리턴 int

Link() 공개 메소드

public Link ( City fromCity, City toCity, double distance ) : System
fromCity City
toCity City
distance double
리턴 System

Link() 공개 메소드

public Link ( City fromCity, City toCity, double distance, TransportModes transportMode ) : System
fromCity City
toCity City
distance double
transportMode TransportModes
리턴 System