jasi.airtraffic.model
Interface FlightFactory

All Known Implementing Classes:
FlightBeanFactory

public interface FlightFactory

Interface for factories to create a flight object.


Method Summary
 Flight createFlight(java.lang.String name, Airport startAirport, Time startTime, Airport landAirport, Time landTime)
          Create a flight.
 

Method Detail

createFlight

Flight createFlight(java.lang.String name,
                    Airport startAirport,
                    Time startTime,
                    Airport landAirport,
                    Time landTime)
Create a flight.

Parameters:
name - The flight's name.
startAirport - The flight's start airport.
startTime - The flight's start time.
landAirport - The flight's landing airport.
landTime - The flight's landing time.
Returns:
A flight.