jasi.airtraffic.model
Interface Flight

All Superinterfaces:
java.lang.Comparable<Element>, Element, java.io.Serializable, SimObject
All Known Implementing Classes:
FlightBean, FlightHandler

public interface Flight
extends Element

The interface for a flight's functionality.


Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Method Summary
 Coordinate getCoordinate(Time time)
          Calculate actual coordinate.
 Space getDistance()
          Get this flight's distance.
 Id getLandAirport()
          Get this flight's landing airport.
 Coordinate getLandCoordinate()
          Get the landing airport's coordinate.
 Time getLandTime()
          Get this flight's landing time.
 java.lang.String getName()
          Get this flight's name.
 Speed getSpeed()
          Get this flight's required speed.
 Id getStartAirport()
          Get this flight's start airport.
 Coordinate getStartCoordinate()
          Get the start airport's coordinate.
 Time getStartTime()
          Get this flight's start time.
 Time getTime()
          Get this flight's required time.
 
Methods inherited from interface jasi.sim.basic.element.Element
delete, getKey, isDeleted, registered, setKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface jasi.sim.basic.id.SimObject
getId, setId
 

Method Detail

getName

java.lang.String getName()
Get this flight's name.

Returns:
Its name.

getStartTime

Time getStartTime()
Get this flight's start time.

Returns:
Its start time.

getLandTime

Time getLandTime()
Get this flight's landing time.

Returns:
Its landing time.

getStartAirport

Id getStartAirport()
Get this flight's start airport.

Returns:
Its start airport.

getLandAirport

Id getLandAirport()
Get this flight's landing airport.

Returns:
its landing airport.

getSpeed

Speed getSpeed()
Get this flight's required speed.

Returns:
Its required speed.

getDistance

Space getDistance()
Get this flight's distance.

Returns:
Its distance.

getTime

Time getTime()
Get this flight's required time.

Returns:
Its required time.

getStartCoordinate

Coordinate getStartCoordinate()
Get the start airport's coordinate.

Returns:
The coordinate.

getLandCoordinate

Coordinate getLandCoordinate()
Get the landing airport's coordinate.

Returns:
The coordinate.

getCoordinate

Coordinate getCoordinate(Time time)
Calculate actual coordinate.

Parameters:
time - The actual time.
Returns:
The calculated coordinate.