de.unihalle.informatik.Alida.workflows
Class ALDWorkflowEdge

java.lang.Object
  extended by de.unihalle.informatik.Alida.workflows.ALDWorkflowEdge

public class ALDWorkflowEdge
extends java.lang.Object

This class represents an edge within an work flow. It connects an output parameter of the source node with an input parameter of the target node. Parameters are referenced via names.

Author:
posch

Field Summary
private  ALDWorkflowNode sourceNode
          source node of this edge in the work flow
private  java.lang.String sourceParameterName
          parameter name in source node
private  ALDWorkflowNode targetNode
          target node of this edge in the work flow
private  java.lang.String targetParameterName
          parameter name in target node
 
Constructor Summary
ALDWorkflowEdge(ALDWorkflowNode sourceNode, java.lang.String sourceParameterName, ALDWorkflowNode targetNode, java.lang.String targetParameterName)
          Create an edge with the given source and target.
 
Method Summary
 java.lang.Integer getId()
          Return the id associated with this edge.
 ALDWorkflowNode getSourceNode()
          Returns the source node.
 java.lang.String getSourceParameterName()
          Returns the parameter name of the source.
 ALDWorkflowNode getTargetNode()
          Returns the target node.
 java.lang.String getTargetParameterName()
          Returns the parameter name of the target.
 void print()
          Print information of this edge to standard out.
protected  void redirectSource(ALDWorkflowNode newSourceNode, java.lang.String newSourceParameterName)
          Redirect the source of this edge
protected  void redirectTarget(ALDWorkflowNode newTargetNode, java.lang.String newTargetParameterName)
          Redirect the target of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceNode

private ALDWorkflowNode sourceNode
source node of this edge in the work flow


sourceParameterName

private java.lang.String sourceParameterName
parameter name in source node


targetNode

private ALDWorkflowNode targetNode
target node of this edge in the work flow


targetParameterName

private java.lang.String targetParameterName
parameter name in target node

Constructor Detail

ALDWorkflowEdge

public ALDWorkflowEdge(ALDWorkflowNode sourceNode,
                       java.lang.String sourceParameterName,
                       ALDWorkflowNode targetNode,
                       java.lang.String targetParameterName)
Create an edge with the given source and target.

Parameters:
sourceNode -
sourceParameterName -
targetNode -
targetParameterName -
Method Detail

getId

public java.lang.Integer getId()
Return the id associated with this edge.

Returns:

getSourceNode

public ALDWorkflowNode getSourceNode()
Returns the source node.

Returns:

getSourceParameterName

public java.lang.String getSourceParameterName()
Returns the parameter name of the source.

Returns:

getTargetNode

public ALDWorkflowNode getTargetNode()
Returns the target node.

Returns:

getTargetParameterName

public java.lang.String getTargetParameterName()
Returns the parameter name of the target.

Returns:

print

public void print()
Print information of this edge to standard out.


redirectSource

protected void redirectSource(ALDWorkflowNode newSourceNode,
                              java.lang.String newSourceParameterName)
Redirect the source of this edge

Parameters:
newSourceNode -
newSourceParameterName -

redirectTarget

protected void redirectTarget(ALDWorkflowNode newTargetNode,
                              java.lang.String newTargetParameterName)
Redirect the target of this node.

Parameters:
newTargetNode -
newTargetParameterName -