Package edu.pdx.cs410J.airline
Class Flight
java.lang.Object
edu.pdx.cs410J.AbstractFlight
edu.pdx.cs410J.airline.Flight
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a textual representation of this flight's arrival time.Returns a textual representation of this flight's departure time.Returns the three-letter code of the airport at which this flight terminates.int
Returns a number that uniquely identifies this flight.Returns the three-letter code of the airport at which this flight originates.Methods inherited from class edu.pdx.cs410J.AbstractFlight
getArrival, getDeparture, toString
-
Constructor Details
-
Flight
public Flight()
-
-
Method Details
-
getNumber
Description copied from class:AbstractFlight
Returns a number that uniquely identifies this flight.- Specified by:
getNumber
in classAbstractFlight
-
getSource
Description copied from class:AbstractFlight
Returns the three-letter code of the airport at which this flight originates.- Specified by:
getSource
in classAbstractFlight
-
getDepartureString
Description copied from class:AbstractFlight
Returns a textual representation of this flight's departure time.- Specified by:
getDepartureString
in classAbstractFlight
-
getDestination
Description copied from class:AbstractFlight
Returns the three-letter code of the airport at which this flight terminates.- Specified by:
getDestination
in classAbstractFlight
-
getArrivalString
Description copied from class:AbstractFlight
Returns a textual representation of this flight's arrival time.- Specified by:
getArrivalString
in classAbstractFlight
-