public class ALDWorkflowEdge extends Object
Modifier and Type | Field and Description |
---|---|
private ALDDataConverter |
converter
a data converter to convert source to target class if necessary,
i.e. the class of the target parameter is not assignable from the source parameter
|
private boolean |
needConverter
This field is necessary for (de)serialization as the provider
cannot be (de)serialized.
|
private ALDWorkflowNode |
sourceNode
source node of this edge in the work flow
|
private String |
sourceParameterName
parameter name in source node
|
private ALDWorkflowNode |
targetNode
target node of this edge in the work flow
|
private String |
targetParameterName
parameter name in target node
|
Constructor and Description |
---|
ALDWorkflowEdge(ALDWorkflowNode sourceNode,
String sourceParameterName,
ALDWorkflowNode targetNode,
String targetParameterName)
Create an edge with the given source and target.
|
Modifier and Type | Method and Description |
---|---|
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) |
private ALDWorkflowNode sourceNode
private String sourceParameterName
private ALDWorkflowNode targetNode
private String targetParameterName
private boolean needConverter
private transient ALDDataConverter converter
public ALDWorkflowEdge(ALDWorkflowNode sourceNode, String sourceParameterName, ALDWorkflowNode targetNode, String targetParameterName)
sourceNode
- sourceParameterName
- targetNode
- targetParameterName
- public ALDWorkflowNode getSourceNode()
public String getSourceParameterName()
public ALDWorkflowNode getTargetNode()
public String getTargetParameterName()
public Integer getId()
protected void redirectSource(ALDWorkflowNode newSourceNode, String newSourceParameterName)
newSourceNode
- newSourceParameterName
- protected void redirectTarget(ALDWorkflowNode newTargetNode, String newTargetParameterName)
newTargetNode
- newTargetParameterName
- public ALDDataConverter getConverter()
protected void setConverter(ALDDataConverter converter)
converter
- the converter to setpublic boolean isNeedConverter()
public void print()
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.