jasi.airtraffic.defi
Class AirportBean
java.lang.Object
jasi.sim.basic.value.AbstractSimValueType
jasi.sim.basic.value.AbstractComparableObject<Element>
jasi.sim.basic.element.AbstractElementBean
jasi.sim.basic.element.relation.MultiRelationHandler
jasi.sim.basic.element.relation.MultiRelation
jasi.airtraffic.defi.AirportHandler
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
Constructor Summary |
AirportBean()
Constructor for an airport. |
AirportBean(Id id)
Constructor for an airport for a given ID. |
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
compareTo |
AirportBean
public AirportBean()
- Constructor for an airport.
AirportBean
public AirportBean(Id id)
- Constructor for an airport for a given ID.
- Parameters:
id
- The ID.
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.