jasi.airtraffic.defi
Class AirplaneBean
java.lang.Object
jasi.sim.basic.value.AbstractSimValueType
jasi.sim.basic.value.AbstractComparableObject<Element>
jasi.sim.basic.element.AbstractElementBean
jasi.airtraffic.defi.AirplaneHandler
jasi.airtraffic.defi.AirplaneBean
- All Implemented Interfaces:
- Airplane, Element, SimObject, ExtendedComparable<Element>, SimValue, java.io.Serializable, java.lang.Comparable<Element>
public class AirplaneBean
- extends AirplaneHandler
The airplane element. It implements the method of the airplane interface.
- See Also:
- Serialized Form
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 |
AirplaneBean
public AirplaneBean()
- Constructor for an airport.
AirplaneBean
public AirplaneBean(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 AbstractElementBean
- Returns:
- The deleted element.
- See Also:
AbstractElementBean.delete()
start
public void start(Airport airport,
Flight flight)
- Start the flight of this airplane from an airport.
- Parameters:
airport
- That airport.flight
- The flight.
land
public void land(Airport airport)
- Land this airplane at that airport.
- Parameters:
airport
- That airport.
calculate
public Coordinate calculate(Time time)
- Calculate actual coordinate.
- Parameters:
time
- The actual time.
- Returns:
- The calculated coordinate.