jasi.airtraffic.defi
Class AirplaneBean

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.airtraffic.defi.AirplaneHandler
                  extended by 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

Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Constructor Summary
AirplaneBean()
          Constructor for an airport.
AirplaneBean(Id id)
          Constructor for an airport for a given ID.
 
Method Summary
 Coordinate calculate(Time time)
          Calculate actual coordinate.
 Element delete()
          Delete this element.
 void land(Airport airport)
          Land this airplane at that airport.
 void start(Airport airport, Flight flight)
          Start the flight of this airplane from an airport.
 
Methods inherited from class jasi.airtraffic.defi.AirplaneHandler
getCoordinate, getFlight, getName, isFlying, setCoordinate, setFlight, setFlying, setName, toString
 
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

AirplaneBean

public AirplaneBean()
Constructor for an airport.


AirplaneBean

public AirplaneBean(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 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.