Class ScheduleRoute
java.lang.Object
org.deltava.beans.schedule.AbstractRoute
org.deltava.beans.schedule.ScheduleRoute
- All Implemented Interfaces:
Comparable<ScheduleRoute>
,GeoLocation
,MapEntry
,RoutePair
,ViewEntry
- Direct Known Subclasses:
GetFlightReportStatistics.DispatchScheduleRoute
A bean to store route pair information.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
Field Summary
Fields inherited from class org.deltava.beans.schedule.AbstractRoute
_frequency
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES
-
Constructor Summary
ConstructorsConstructorDescriptionScheduleRoute
(Airline a, Airport ad, Airport aa) Creates a new Route Pair.ScheduleRoute
(Airport ad, Airport aa) Creates a new Route Pair. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ScheduleRoute rp2) Compares two route pairs by comparing their sorted airport codes.boolean
Compars two route pairs by comparing their airport codes.Returns the Airline serving this airport pair.int
Returns the number of Dispatch rotues between these two airports.Returns the CSS class for this object if rendered in a view table.getType()
Returns the pair type.void
setFlights
(int count) Updates the number of flights between these two airports.void
setRoutes
(int count) Updates the number of Dispatch routes between these two airports.void
setType
(RoutePairType rt) Updates the route pair type.Methods inherited from class org.deltava.beans.schedule.AbstractRoute
getAirportA, getAirportD, getFlights, getInfoBox, getLatitude, getLongitude, getPoints, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
Constructor Details
-
ScheduleRoute
-
ScheduleRoute
-
-
Method Details
-
getAirline
Returns the Airline serving this airport pair.- Returns:
- the Airline bean
-
getRoutes
public int getRoutes()Returns the number of Dispatch rotues between these two airports.- Returns:
- the number of routes
- See Also:
-
getType
-
setFlights
public void setFlights(int count) Updates the number of flights between these two airports.- Parameters:
count
- the number of flights- See Also:
-
setRoutes
public void setRoutes(int count) Updates the number of Dispatch routes between these two airports.- Parameters:
count
- the number of routes- See Also:
-
setType
Updates the route pair type.- Parameters:
rt
- the RoutePairType
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-
compareTo
Compares two route pairs by comparing their sorted airport codes.- Specified by:
compareTo
in interfaceComparable<ScheduleRoute>
- See Also:
-
equals
-