faa.tg.aidl
Class AidlFix

java.lang.Object
  extended by faa.tg.aidl.AidlFix
All Implemented Interfaces:
AidlObject, HasName, Filterable, ManagedObject, java.io.Serializable

public class AidlFix
extends java.lang.Object
implements AidlObject

Contains info on fixes used in aidl See the source AidlFix.java

Version:
$Id: AidlFix.java,v 1.5 2008/05/22 15:37:06 samf Exp $
Author:
Sam Fullerton, L-3 Titan
See Also:
Serialized Form

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  Fix fix
           
private  int index
           
(package private) static long serialVersionUID
           
 
Constructor Summary
AidlFix(Fix fix, int index)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns whether this object is equal to the given object
 int getIndex()
          Returns index of fix
 java.lang.String getName()
          Returns a unique name Required by HasName inteface
 Position getPosition()
          Returns the position of the fix
static java.lang.String toAidlString(Latitude lat)
          Returns a string which contains the latitude formated for use in AIDL the format is (-)(DD)DMMSS.SSSS, where - indicates South
static java.lang.String toAidlString(Longitude lon)
          Returns a string which contains the longitude formated for use in AIDL the format is (-)(DD)DMMSS.SSSS, where - indicates West
 java.lang.String toString()
          Returns a string representation of this object
 Element toXml()
          Retuns an XML representation of this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

index

private int index

fix

private Fix fix
Constructor Detail

AidlFix

public AidlFix(Fix fix,
               int index)
Constructor

Parameters:
fix - - the fix
index - - the index of the fix
Method Detail

getIndex

public int getIndex()
Returns index of fix

Specified by:
getIndex in interface AidlObject

getName

public java.lang.String getName()
Returns a unique name Required by HasName inteface

Specified by:
getName in interface ManagedObject
Returns:
Returns the name of the object.

getPosition

public Position getPosition()
Returns the position of the fix


equals

public boolean equals(java.lang.Object obj)
Returns whether this object is equal to the given object

Specified by:
equals in interface AidlObject
Overrides:
equals in class java.lang.Object
Parameters:
obj - - the object to check

toString

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

Specified by:
toString in interface AidlObject
Overrides:
toString in class java.lang.Object

toXml

public Element toXml()
Retuns an XML representation of this object

Specified by:
toXml in interface AidlObject

toAidlString

public static java.lang.String toAidlString(Longitude lon)
Returns a string which contains the longitude formated for use in AIDL the format is (-)(DD)DMMSS.SSSS, where - indicates West

Parameters:
lon - - the longitude to format
Returns:
a string which contains the longitude formated for use in AIDL

toAidlString

public static java.lang.String toAidlString(Latitude lat)
Returns a string which contains the latitude formated for use in AIDL the format is (-)(DD)DMMSS.SSSS, where - indicates South

Parameters:
lat - - the latitude to format
Returns:
a string which contains the latitude formated for use in AIDL