jasi.airtraffic.defi
Class AirportHandler

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

public abstract class AirportHandler
extends MultiRelation
implements Airport

The container of an airport's element attributes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Constructor Summary
protected AirportHandler()
          Construct container of an airport's attributes.
protected AirportHandler(Id id)
          Construct container of an airport's attributes.
 
Method Summary
 Coordinate getCoordinate()
          Get the coordinate attribute.
 java.lang.String getName()
          Get the name attribute.
 void setCoordinate(Coordinate coordinate)
          Set the coordinate 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.relation.MultiRelation
delete
 
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.airtraffic.model.Airport
hasAirplane, landAirplane, startAirplane
 
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

AirportHandler

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


AirportHandler

protected AirportHandler(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 MultiRelationHandler
Returns:
The string.

getName

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

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

setName

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

Parameters:
name - The new value of the attribute.

getCoordinate

public final Coordinate getCoordinate()
Get the coordinate attribute.

Specified by:
getCoordinate in interface Airport
Returns:
Its value.

setCoordinate

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

Parameters:
coordinate - The new value of the attribute.