jasi.airtraffic.defi
Class AirportBean

java.lang.Object
  extended by jasi.sim.basic.value.AbstractSimValueType
      extended by jasi.sim.basic.value.AbstractComparableObject<Element>
          extended by jasi.sim.basic.element.AbstractElementBean
              extended by jasi.sim.basic.element.relation.MultiRelationHandler
                  extended by jasi.sim.basic.element.relation.MultiRelation
                      extended by jasi.airtraffic.defi.AirportHandler
                          extended by jasi.airtraffic.defi.AirportBean
All Implemented Interfaces:
Airport, Element, SimObject, ExtendedComparable<Element>, SimValue, java.io.Serializable, java.lang.Comparable<Element>

public class AirportBean
extends AirportHandler

An airport object. It implements the method of the airport interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Constructor Summary
AirportBean()
          Constructor for an airport.
AirportBean(Id id)
          Constructor for an airport for a given ID.
 
Method Summary
 Element delete()
          Delete this element.
 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 class jasi.airtraffic.defi.AirportHandler
getCoordinate, getName, setCoordinate, setName, toString
 
Methods inherited from class jasi.sim.basic.element.relation.MultiRelationHandler
getList, setList
 
Methods inherited from class jasi.sim.basic.element.AbstractElementBean
acceptDelete, compareTo, elements, equals, get, getId, getKey, hashCode, isDeleted, registered, set, setId, setKey
 
Methods inherited from class jasi.sim.basic.value.AbstractComparableObject
isEQ, isGE, isGT, isLE, isLT, isNE
 
Methods inherited from class jasi.sim.basic.value.AbstractSimValueType
getContent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jasi.sim.basic.element.Element
getKey, isDeleted, registered, setKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface jasi.sim.basic.id.SimObject
getId, setId
 

Constructor Detail

AirportBean

public AirportBean()
Constructor for an airport.


AirportBean

public AirportBean(Id id)
Constructor for an airport for a given ID.

Parameters:
id - The ID.
Method Detail

delete

public Element delete()
Delete this element.

Specified by:
delete in interface Element
Overrides:
delete in class MultiRelation
Returns:
The deleted element.
See Also:
AbstractElementBean.delete()

hasAirplane

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

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

landAirplane

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

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

startAirplane

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

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