jasi.airtraffic.model
Interface Airplane

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

public interface Airplane
extends Element

The interface for an airplane's functionality.


Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Method Summary
 Coordinate calculate(Time time)
          Calculate actual coordinate.
 java.lang.String getName()
          Get the airplane's name.
 boolean isFlying()
          Check, if this airplane is flying.
 void land(Airport airport)
          Land this airplane at that airport.
 void start(Airport airport, Flight flight)
          Start this airplane from that airport.
 
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 the airplane's name.

Returns:
The name.

isFlying

boolean isFlying()
Check, if this airplane is flying.

Returns:
True, if airplane is flying.

start

void start(Airport airport,
           Flight flight)
Start this airplane from that airport.

Parameters:
airport - That airport.
flight - The flight.

land

void land(Airport airport)
Land this airplane at that airport.

Parameters:
airport - That airport.

calculate

Coordinate calculate(Time time)
Calculate actual coordinate.

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