org.apache.agila.impl
Class ConnectionImpl

java.lang.Object
  extended by org.apache.agila.impl.ConnectionImpl
All Implemented Interfaces:
Connection

public class ConnectionImpl
extends java.lang.Object
implements Connection

Implementation of a Connection

Version:
$Id: $
Author:
Geir Magnusson Jr.

Constructor Summary
ConnectionImpl(java.lang.String name)
           
 
Method Summary
 Node getChildNode()
          Get the child node for this connection.
 java.lang.String getDisplayName()
          returns display name of connection
 Node getParentNode()
          Get the parent node for this connection.
 void setChildNode(Node n)
          Set the child node for this connection.
 void setDisplayName(java.lang.String n)
           
 void setParentNode(Node n)
          Set the parent node for this connection.
 boolean traverse(Token token)
          Moves a token to the 'child' or 'bottom' node, setting the state appropriately
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionImpl

public ConnectionImpl(java.lang.String name)
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: Connection
returns display name of connection

Specified by:
getDisplayName in interface Connection
Returns:

setDisplayName

public void setDisplayName(java.lang.String n)

setParentNode

public void setParentNode(Node n)
Description copied from interface: Connection
Set the parent node for this connection. This is the 'top' node of the connection in the directed sense

Specified by:
setParentNode in interface Connection

getParentNode

public Node getParentNode()
Description copied from interface: Connection
Get the parent node for this connection. This is the 'top' node of the connection in the directed sense

Specified by:
getParentNode in interface Connection

setChildNode

public void setChildNode(Node n)
Description copied from interface: Connection
Set the child node for this connection. This is the 'bottom' node of the connection in the directed sense

Specified by:
setChildNode in interface Connection

getChildNode

public Node getChildNode()
Description copied from interface: Connection
Get the child node for this connection. This is the 'bottom' node of the connection in the directed sense

Specified by:
getChildNode in interface Connection

traverse

public boolean traverse(Token token)
Description copied from interface: Connection
Moves a token to the 'child' or 'bottom' node, setting the state appropriately

Specified by:
traverse in interface Connection
Returns:


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.