faa.tg.ground
Class GroundNode

java.lang.Object
  extended by faa.tg.ground.GroundNode
All Implemented Interfaces:
ManagedObject, java.io.Serializable

public class GroundNode
extends java.lang.Object
implements ManagedObject, java.io.Serializable

GroundNode is essentially a RouteNode designed for use in the ground-based simulator. Despite implementing java.io.Serializable, this class cannot be serialized.

Version:
$Id: GroundNode.java,v 3.15 2008/09/23 21:54:04 lykensj Exp $
Author:
jimh
See Also:
Serialized Form

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID.
private  GroundFix fix
           
private  SimEventActionOnAircraft routeNodeAction
          SimEvent action to be executed by aircraft at this RouteNode.
(package private) static long serialVersionUID
           
 
Constructor Summary
GroundNode(GroundFix aFix)
          Constructs a GroundNode that encapsulates the given GroundFix.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 void executeAction(Aircraft aircraft)
          Tries to execute the action contained by this node on the aircraft provided.
 GroundFix getFix()
           
 java.lang.String getName()
          Returns the name of the fix associated with this node.
 java.lang.String getNodeInfo()
          Returns a string with the name of a node and any actions or restrictions in brackets
 int hashCode()
           
 boolean hasRouteNodeAction()
          Returns true if this RouteNode has a route node action, false if not.
private  java.lang.Object readResolve()
           
 void setRouteNodeAction(SimEventActionOnAircraft newRouteNodeAction)
          Sets the routeNodeAction associated with this RouteNode.
(package private)  GroundNode split(Manager<GroundFix> manager)
           
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, 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

routeNodeAction

private SimEventActionOnAircraft routeNodeAction
SimEvent action to be executed by aircraft at this RouteNode. Not serialized.


fix

private final GroundFix fix
Constructor Detail

GroundNode

public GroundNode(GroundFix aFix)
Constructs a GroundNode that encapsulates the given GroundFix. mHold is initialized to false.

Parameters:
aFix - the GroundFix this node represents
Method Detail

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException

readResolve

private java.lang.Object readResolve()
                              throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException

getFix

public GroundFix getFix()

getNodeInfo

public java.lang.String getNodeInfo()
Returns a string with the name of a node and any actions or restrictions in brackets


setRouteNodeAction

public void setRouteNodeAction(SimEventActionOnAircraft newRouteNodeAction)
Sets the routeNodeAction associated with this RouteNode.

Parameters:
newRouteNodeAction - Action to be executed at this RouteNode.

getName

public java.lang.String getName()
Returns the name of the fix associated with this node.

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

executeAction

public void executeAction(Aircraft aircraft)
                   throws ExecutionException
Tries to execute the action contained by this node on the aircraft provided. Will throw a NullPointerException if the node has no associated action.

Parameters:
aircraft, - what to instruct.
Throws:
faa.tg.simevent.action.ExecutionExeception
ExecutionException

hasRouteNodeAction

public boolean hasRouteNodeAction()
Returns true if this RouteNode has a route node action, false if not.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

split

GroundNode split(Manager<GroundFix> manager)