faa.tg.aidl
Class AidlObjectMgr

java.lang.Object
  extended by faa.tg.aidl.AidlObjectMgr

public class AidlObjectMgr
extends java.lang.Object

Manages aidl objects See the source AidlObjectMgr.java

Version:
$Id: AidlObjectMgr.java,v 1.5 2008/05/27 12:49:44 samf Exp $
Author:
Sam Fullerton, L-3 Titan

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  int paramIndex
           
private  java.util.Map<java.lang.String,AidlObject> paramsByObject
           
private  int triggerIndex
           
 
Constructor Summary
AidlObjectMgr()
          Constructor
 
Method Summary
private  void addAidlObject(AidlObject obj)
          adds a given aidl object to the manager
 AidlFix addFix(java.lang.String name, Position position)
          Add a fix
 AidlGlideSlope addGlideSlope(AidlFix outerMarkerFix, Runway runway, AircraftState acState)
          Add a glide slope
 AidlLine addLine(AidlFix fix1, AidlFix fix2)
          Add line
 AidlParameter addParamRef(AidlObject obj)
          Add a parameter witha reference to another aidl object
 AidlSpeedLaw addSpeedLaw(java.lang.String law, java.lang.String ci)
          Add a speed law
 AidlTrigger addTrigger(java.lang.String condition, TriggerClasses triggerClass, java.lang.Integer href)
          Adds a trigger
 AidlObject getAidlObjectByName(java.lang.String name)
          Returns the object with the given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

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

See Also:
Constant Field Values

paramsByObject

private java.util.Map<java.lang.String,AidlObject> paramsByObject

paramIndex

private int paramIndex

triggerIndex

private int triggerIndex
Constructor Detail

AidlObjectMgr

public AidlObjectMgr()
Constructor

Method Detail

addAidlObject

private void addAidlObject(AidlObject obj)
adds a given aidl object to the manager

Parameters:
obj - - the object to add

addGlideSlope

public AidlGlideSlope addGlideSlope(AidlFix outerMarkerFix,
                                    Runway runway,
                                    AircraftState acState)
Add a glide slope

Parameters:
outerMarkerFix - - the aidl fix for the outer marker
runway - - the runway the glide slope is for
acState - - the current state of the aircraft
Returns:
Returns the Aidl glide slope added to the manager

addParamRef

public AidlParameter addParamRef(AidlObject obj)
Add a parameter witha reference to another aidl object

Parameters:
obj - - the aidl object that the parameter references
Returns:
the aidl parameter added to the manager

addSpeedLaw

public AidlSpeedLaw addSpeedLaw(java.lang.String law,
                                java.lang.String ci)
Add a speed law

Parameters:
law - - the law to use
ci - - unknown
Returns:
the aidl speed law added to the manager

addTrigger

public AidlTrigger addTrigger(java.lang.String condition,
                              TriggerClasses triggerClass,
                              java.lang.Integer href)
Adds a trigger

Parameters:
condition - - the condition that causes the trigger to end
triggerClass - - the class of the trigger
href - - a reference to another trigger
Returns:
the aidl trigger added to the manager

addLine

public AidlLine addLine(AidlFix fix1,
                        AidlFix fix2)
Add line

Parameters:
fix1 - - the first fix on the line
fix2 - - the second fix on the line
Returns:
Returns the aidl line added to the manager

getAidlObjectByName

public AidlObject getAidlObjectByName(java.lang.String name)
Returns the object with the given name

Parameters:
name - - the name of the object to look for
Returns:
Returns the object with the given name, or null if unable to find

addFix

public AidlFix addFix(java.lang.String name,
                      Position position)
Add a fix

Parameters:
name - - the name of the fix
position - - the position of the fix
Returns:
the aidlfix added to the manager