org.apache.agila.model
Interface Connection

All Known Implementing Classes:
ConnectionImpl

public interface Connection

Represents a 'transition' or 'state change' in the directed graph of nodes in the workflow.

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

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 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
 

Method Detail

getDisplayName

java.lang.String getDisplayName()
returns display name of connection

Returns:

setParentNode

void setParentNode(Node n)
Set the parent node for this connection. This is the 'top' node of the connection in the directed sense

Parameters:
n -

getParentNode

Node getParentNode()
Get the parent node for this connection. This is the 'top' node of the connection in the directed sense


setChildNode

void setChildNode(Node n)
Set the child node for this connection. This is the 'bottom' node of the connection in the directed sense

Parameters:
n -

getChildNode

Node getChildNode()
Get the child node for this connection. This is the 'bottom' node of the connection in the directed sense


traverse

boolean traverse(Token token)
Moves a token to the 'child' or 'bottom' node, setting the state appropriately

Parameters:
token -
Returns:


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