faa.tg.aidl
Class AidlArc

java.lang.Object
  extended by faa.tg.aidl.AidlArc
All Implemented Interfaces:
AidlObject, HasName, Filterable, ManagedObject, java.io.Serializable
Direct Known Subclasses:
TgfAidlArc

public class AidlArc
extends java.lang.Object
implements AidlObject

Defines an Aidl Arc See the source AidlArc.java

Version:
$Id: AidlArc.java,v 1.3 2008/06/04 18:29:47 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  int index
           
private  AidlLine line1
           
private  AidlLine line2
           
private  java.lang.String name
           
private  Distance radius
           
(package private) static long serialVersionUID
           
 
Constructor Summary
AidlArc(AidlLine line1, AidlLine line2, Distance radius, int index)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns whether this object is equal to the given object
 int getIndex()
          Returns Aidl index
 AidlLine getLine1()
          Returns the first line
 AidlLine getLine2()
          Returns the last line
 java.lang.String getName()
          Returns a unique name Required by HasName inteface
 Distance getRadius()
          Returns the radius
 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

name

private java.lang.String name

line1

private AidlLine line1

line2

private AidlLine line2

radius

private Distance radius
Constructor Detail

AidlArc

public AidlArc(AidlLine line1,
               AidlLine line2,
               Distance radius,
               int index)
Constructor

Parameters:
line1 - - the first line the arc connects to
line2 - - the second line the arc connects to
radius - - the radius of the arc
index - - the index of the arc in aidl
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

toXml

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

Specified by:
toXml in interface AidlObject

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

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.

getLine1

public AidlLine getLine1()
Returns the first line


getRadius

public Distance getRadius()
Returns the radius


getLine2

public AidlLine getLine2()
Returns the last line