org.deltava.beans.schedule
Class AirportServiceMap

java.lang.Object
  extended by org.deltava.beans.schedule.AirportServiceMap

public class AirportServiceMap
extends Object

A bean to track which Airports are served by particular Airlines.

Since:
1.0
Version:
1.0
Author:
Luke

Constructor Summary
AirportServiceMap()
           
 
Method Summary
 void add(Airline a, Airport ap)
          Adds a particular Airport/Airline pair.
 Collection<String> getAirlineCodes(Airport a)
          Returns the codes of all Airlines serving a particular Airport.
 boolean isServiced(Airport ap, Airline a)
          Queries whether a particular Airline serves a particular Airport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AirportServiceMap

public AirportServiceMap()
Method Detail

add

public void add(Airline a,
                Airport ap)
Adds a particular Airport/Airline pair.

Parameters:
a - the Airline bean
ap - the Airport bean

isServiced

public boolean isServiced(Airport ap,
                          Airline a)
Queries whether a particular Airline serves a particular Airport.

Parameters:
ap - the Airport bean
a - the Airline bean
Returns:
TRUE if the Airline serves the Airport, otherwise FALSE

getAirlineCodes

public Collection<String> getAirlineCodes(Airport a)
Returns the codes of all Airlines serving a particular Airport.

Parameters:
a - the Airport bean
Returns:
a Collection of Airline codes
See Also:
Airline.getCode(), Airport.setAirlines(Collection)


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.