jasi.airtraffic.defi
Class FlightBeanFactory

java.lang.Object
  extended by jasi.airtraffic.defi.FlightBeanFactory
All Implemented Interfaces:
FlightFactory

public class FlightBeanFactory
extends java.lang.Object
implements FlightFactory

A factory for flights. It will be used by the start events to create flights.

See Also:
jasi.aitraffic.model.StartEvent#setFlightFactory(jasi.aitraffic.model.FlightFactory)

Constructor Summary
FlightBeanFactory()
           
 
Method Summary
 Flight createFlight(java.lang.String name, Airport startAirport, Time startTime, Airport landAirport, Time landTime)
          Create a flight.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlightBeanFactory

public FlightBeanFactory()
Method Detail

createFlight

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

Specified by:
createFlight in interface FlightFactory
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.
See Also:
FlightFactory.createFlight(java.lang.String, jasi.airtraffic.model.Airport, jasi.sim.basic.value.Time, jasi.airtraffic.model.Airport, jasi.sim.basic.value.Time)