GUI displays all fields and altered some GUI
This commit is contained in:
@@ -254,6 +254,31 @@ public class Airport {
|
||||
return country;
|
||||
}
|
||||
|
||||
//JavaDoc needed
|
||||
public Double getTimezone() {
|
||||
if (this.city != null) {
|
||||
return this.city.getTimezone();
|
||||
}else{
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
//JavaDoc needed
|
||||
public String getDST() {
|
||||
if (this.country != null) {
|
||||
return this.country.getDST();
|
||||
}else{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
//JavaDoc needed
|
||||
public String getTz() {
|
||||
if (this.city != null) {
|
||||
return this.city.getTimeOlson();
|
||||
}else{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* set country class associated with this airport
|
||||
* @param country
|
||||
|
||||
@@ -120,6 +120,31 @@ public class Route {
|
||||
return ID;
|
||||
}
|
||||
}
|
||||
//JavaDoc needed
|
||||
public int getAirlineID() throws DataException {
|
||||
if (this.airline != null) {
|
||||
return this.getAirline().getID();
|
||||
}else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public int getSourceID() throws DataException {
|
||||
if (this.getSourceAirport() != null) {
|
||||
return this.getSourceAirport().getID();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public int getDestID() throws DataException {
|
||||
if (this.getDestinationAirport() != null) {
|
||||
return this.getDestinationAirport().getID();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the number of stops the route stops.
|
||||
* @return
|
||||
|
||||
Reference in New Issue
Block a user