jasi.airtraffic.defi
Class AirplaneHandler

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
All Implemented Interfaces:
Airplane, Element, SimObject, ExtendedComparable<Element>, SimValue, java.io.Serializable, java.lang.Comparable<Element>
Direct Known Subclasses:
AirplaneBean

public abstract class AirplaneHandler
extends AbstractElementBean
implements Airplane

The container of an airplane's element attributes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Constructor Summary
protected AirplaneHandler()
          Construct container of an airport's attributes.
protected AirplaneHandler(Id id)
          Construct container of an airport's attributes.
 
Method Summary
 Coordinate getCoordinate()
          Get the coordinate attribute.
 Id getFlight()
          Get the flight attribute.
 java.lang.String getName()
          Get the name attribute.
 boolean isFlying()
          Get the flying attribute.
 void setCoordinate(Coordinate coordinate)
          Set the coordinate attribute.
 void setFlight(Id flight)
          Set the flight attribute.
 void setFlying(boolean flying)
          Set the flying attribute.
 void setName(java.lang.String name)
          Set the name attribute.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class jasi.sim.basic.element.AbstractElementBean
acceptDelete, compareTo, delete, 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.airtraffic.model.Airplane
calculate, land, start
 
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
 

Constructor Detail

AirplaneHandler

protected AirplaneHandler()
Construct container of an airport's attributes.


AirplaneHandler

protected AirplaneHandler(Id id)
Construct container of an airport's attributes.

Parameters:
id - The simulation element's ID.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class AbstractElementBean
Returns:
The string.

setName

public final void setName(java.lang.String name)
Set the name attribute.

Parameters:
name - The new value of the attribute.

getName

public final java.lang.String getName()
Get the name attribute.

Specified by:
getName in interface Airplane
Returns:
Its value.

getCoordinate

public final Coordinate getCoordinate()
Get the coordinate attribute.

Returns:
Its value.

setCoordinate

public final void setCoordinate(Coordinate coordinate)
Set the coordinate attribute.

Parameters:
coordinate - The new value of the attribute.

setFlying

public final void setFlying(boolean flying)
Set the flying attribute.

Parameters:
flying - The new value of the attribute.

isFlying

public final boolean isFlying()
Get the flying attribute.

Specified by:
isFlying in interface Airplane
Returns:
Its value.

setFlight

public final void setFlight(Id flight)
Set the flight attribute.

Parameters:
flight - The new value of the attribute.

getFlight

public final Id getFlight()
Get the flight attribute.

Returns:
Its value.