faa.tg.aidl
Class AidlLine

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

public class AidlLine
extends java.lang.Object
implements AidlObject

An aidl line from fix 1 to fix 2 See the source AidlLine.java

Version:
$Id: AidlLine.java,v 1.4 2008/06/30 13:51:03 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  AidlFix fix1
           
private  AidlFix fix2
           
private  int lineIndex
           
static int MULTIPLIER
           
private  java.lang.String name
           
(package private) static long serialVersionUID
           
 
Constructor Summary
AidlLine(AidlFix fix1, AidlFix fix2, int lineIndex)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns whether this object is equal to the given object
 Distance getDistance()
          Returns the rhumb line distance between the first and the last fix
 java.lang.String getFix1Name()
          Returns the name of the first fix on the line
 Position getFix1Position()
          Returns the position of the first fix on the line
 java.lang.String getFix2Name()
          Returns the name of the last fix on the line
 Position getFix2Position()
          Returns the position of the last fix on the line
 int getIndex()
          Returns Aidl index
 java.lang.String getName()
          Returns a unique name Required by HasName inteface
 Element toXml()
          Returns an xml element representation of this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface faa.tg.aidl.AidlObject
toString
 

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

MULTIPLIER

public static final int MULTIPLIER
See Also:
Constant Field Values

name

private java.lang.String name

lineIndex

private int lineIndex

fix1

private AidlFix fix1

fix2

private AidlFix fix2
Constructor Detail

AidlLine

public AidlLine(AidlFix fix1,
                AidlFix fix2,
                int lineIndex)
Constructor

Parameters:
fix1 - - the first fix
fix2 - - the second fix
lineIndex - - the base index
Method Detail

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

getIndex

public int getIndex()
Returns Aidl index

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.

getFix2Name

public java.lang.String getFix2Name()
Returns the name of the last fix on the line


getFix1Name

public java.lang.String getFix1Name()
Returns the name of the first fix on the line


getFix2Position

public Position getFix2Position()
Returns the position of the last fix on the line


getFix1Position

public Position getFix1Position()
Returns the position of the first fix on the line


toXml

public Element toXml()
Returns an xml element representation of this object

Specified by:
toXml in interface AidlObject

getDistance

public Distance getDistance()
Returns the rhumb line distance between the first and the last fix