jasi.airtraffic.defi
Class FlightHandler

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

public abstract class FlightHandler
extends AbstractElementBean
implements Flight

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 FlightHandler()
          Construct container of an airport's attributes.
protected FlightHandler(Id id)
          Construct container of an airport's attributes.
protected FlightHandler(java.lang.String name, Time startTime, Time landTime, Id startAirport, Id landAirport)
          Construct container of an airport's attributes.
 
Method Summary
 Id getLandAirport()
          Get the landing airport attribute.
 Time getLandTime()
          Get the landing time attribute.
 java.lang.String getName()
          Get the name attribute.
 Id getStartAirport()
          Get the start airport attribute.
 Time getStartTime()
          Get the start time attribute.
 void setLandAirport(Id landAirport)
          Set the landing airport attribute.
 void setLandTime(Time landTime)
          Set the landing time attribute.
 void setName(java.lang.String name)
          Set the name attribute.
 void setStartAirport(Id startAirport)
          Set the start airport attribute.
 void setStartTime(Time startTime)
          Set the start time 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.Flight
getCoordinate, getDistance, getLandCoordinate, getSpeed, getStartCoordinate, getTime
 
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

FlightHandler

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


FlightHandler

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

Parameters:
id - The simulation element's ID.

FlightHandler

protected FlightHandler(java.lang.String name,
                        Time startTime,
                        Time landTime,
                        Id startAirport,
                        Id landAirport)
Construct container of an airport's attributes.

Parameters:
name - The name attribute.
startTime - The start time attribute.
landTime - The landing time attribute.
startAirport - The start airport attribute.
landAirport - The landing airport attribute.
Method Detail

toString

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

Overrides:
toString in class AbstractElementBean
Returns:
The string.

getName

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

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

setName

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

Parameters:
name - The new value of the attribute.

getStartTime

public final Time getStartTime()
Get the start time attribute.

Specified by:
getStartTime in interface Flight
Returns:
Its value.

setStartTime

public final void setStartTime(Time startTime)
Set the start time attribute.

Parameters:
startTime - The new value of the attribute.

getLandTime

public final Time getLandTime()
Get the landing time attribute.

Specified by:
getLandTime in interface Flight
Returns:
Its value.

setLandTime

public final void setLandTime(Time landTime)
Set the landing time attribute.

Parameters:
landTime - The new value of the attribute.

getStartAirport

public final Id getStartAirport()
Get the start airport attribute.

Specified by:
getStartAirport in interface Flight
Returns:
Its value.

setStartAirport

public final void setStartAirport(Id startAirport)
Set the start airport attribute.

Parameters:
startAirport - The new value of the attribute.

getLandAirport

public final Id getLandAirport()
Get the landing airport attribute.

Specified by:
getLandAirport in interface Flight
Returns:
Its value.

setLandAirport

public final void setLandAirport(Id landAirport)
Set the landing airport attribute.

Parameters:
landAirport - The new value of the attribute.