jasi.airtraffic.model
Interface Airport

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

public interface Airport
extends Element

The interface for an airport's functionality.


Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Method Summary
 Coordinate getCoordinate()
          Get the airport's coordinate.
 java.lang.String getName()
          Get the airport's name.
 boolean hasAirplane(Airplane airplane)
          Check, if airport contains that airplane.
 boolean landAirplane(Airplane airplane)
          Land that airplane on this airport.
 boolean startAirplane(Airplane airplane)
          Start that airplane from this 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

hasAirplane

boolean hasAirplane(Airplane airplane)
Check, if airport contains that airplane.

Parameters:
airplane - That airplane.
Returns:
True, if airport contains that airplane.

landAirplane

boolean landAirplane(Airplane airplane)
Land that airplane on this airport.

Parameters:
airplane - That airplane.
Returns:
True, if airplane could land.

startAirplane

boolean startAirplane(Airplane airplane)
Start that airplane from this airport.

Parameters:
airplane - That airplane.
Returns:
True, if airplane could start.

getName

java.lang.String getName()
Get the airport's name.

Returns:
Its name.

getCoordinate

Coordinate getCoordinate()
Get the airport's coordinate.

Returns:
Its coordinate.