edu.pdx.cs399J
Class AbstractAirline

java.lang.Object
  extended by edu.pdx.cs399J.AbstractAirline

public abstract class AbstractAirline
extends Object

This class represents an airline. Each airline has a name and consists of multiple flights.


Constructor Summary
AbstractAirline()
           
 
Method Summary
abstract  void addFlight(AbstractFlight flight)
          Adds a flight to this airline.
abstract  Collection getFlights()
          Returns all of this airline's flights.
abstract  String getName()
          Returns the name of this airline.
 String toString()
          Returns a brief textual description of this airline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAirline

public AbstractAirline()
Method Detail

getName

public abstract String getName()
Returns the name of this airline.


addFlight

public abstract void addFlight(AbstractFlight flight)
Adds a flight to this airline.


getFlights

public abstract Collection getFlights()
Returns all of this airline's flights.


toString

public String toString()
Returns a brief textual description of this airline.

Overrides:
toString in class Object


Copyright © 2000-2009 Portland State University. All Rights Reserved.