|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.AbstractFlight
public abstract class AbstractFlight
This class represents an airline flight. Each flight has a unique number identifying it, an origin airport identified by the airport's three-letter code, a departure time, a destination airport identified by the airport's three-letter code, and an arrival time.
| Constructor Summary | |
|---|---|
AbstractFlight()
|
|
| Method Summary | |
|---|---|
Date |
getArrival()
Returns this flight's arrival time as a Date. |
abstract String |
getArrivalString()
Returns a textual representation of this flight's arrival time. |
Date |
getDeparture()
Returns this flight's departure time as a Date. |
abstract String |
getDepartureString()
Returns a textual representation of this flight's departure time. |
abstract String |
getDestination()
Returns the three-letter code of the airport at which this flight terminates. |
abstract int |
getNumber()
Returns a number that uniquely identifies this flight. |
abstract String |
getSource()
Returns the three-letter code of the airport at which this flight originates. |
String |
toString()
Returns a brief textual description of this flight. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFlight()
| Method Detail |
|---|
public abstract int getNumber()
public abstract String getSource()
public Date getDeparture()
Date.
public abstract String getDepartureString()
public abstract String getDestination()
public Date getArrival()
Date.
public abstract String getArrivalString()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||