|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object airline.CollectAirports
public class CollectAirports
Constructor Summary | |
---|---|
CollectAirports()
Creates a new instance of CollectAirports. |
Method Summary | |
---|---|
boolean |
addNextAirport(Airport currAirport)
adding airport to the collection |
void |
displayAllAirports(java.io.PrintWriter outpw)
displays all current airports to a file. |
Airport |
getAirportByCode(java.lang.String code)
Get airport corresponding to passed airport code (returns unknown airport if not found) |
Airport |
getNthAirport(int nth)
pick out an airport - by position in the collection |
int |
getNumAirports()
report how many actual airports are currently stored in the collection |
int |
readAirportsFromFile(java.lang.String filename)
create a collection of airports via reading a file (filename is passed). |
boolean |
setNthAirport(Airport currAirport,
int num)
change a specific airport in the collection (by position). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectAirports()
Method Detail |
---|
public int getNumAirports()
public void displayAllAirports(java.io.PrintWriter outpw)
public boolean addNextAirport(Airport currAirport)
public Airport getNthAirport(int nth)
public boolean setNthAirport(Airport currAirport, int num)
public Airport getAirportByCode(java.lang.String code)
public int readAirportsFromFile(java.lang.String filename)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |