de.unihalle.informatik.Alida.workflows
Class ALDWorkflowEdge

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

public class ALDWorkflowEdge
extends 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

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

Constructor Detail

ALDWorkflowEdge

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

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

getSourceNode

public ALDWorkflowNode getSourceNode()
Returns the source node.

Returns:

getSourceParameterName

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

Returns:

getTargetNode

public ALDWorkflowNode getTargetNode()
Returns the target node.

Returns:

getTargetParameterName

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

Returns:

getId

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

Returns:

redirectSource

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

Parameters:
newSourceNode -
newSourceParameterName -

redirectTarget

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

Parameters:
newTargetNode -
newTargetParameterName -

getConverter

public ALDDataConverter getConverter()
Returns:
the converter

setConverter

protected void setConverter(ALDDataConverter converter)
Parameters:
converter - the converter to set

isNeedConverter

public boolean isNeedConverter()
Returns:
the needConverter

print

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



Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.