public class ALDWorkflowNode extends Object
ALDAOperator
object
and edges connecting parameters of this operator.Modifier and Type | Class and Description |
---|---|
static class |
ALDWorkflowNode.ALDWorkflowNodeState |
Modifier and Type | Field and Description |
---|---|
(package private) Vector<ALDWorkflowEdge> |
inEdges
all incoming edges.
|
boolean |
isInteriorShadowNode
Is true it his node is used as an interior shadow (or substitute) for the
node holding this work flow {see
ALDWorkflow . |
private ALDOperator |
op
The operator object associated with this node.
|
private String |
operatorExecutionProgressDescr
The execution progress of the operator associated with this node
|
(package private) Vector<ALDWorkflowEdge> |
outEdges
outgoing edges.
|
private ALDWorkflow |
parentWorkflow
This is the enclosing work flow.
|
private ALDWorkflowNode.ALDWorkflowNodeState |
state
The state of the node
|
Constructor and Description |
---|
ALDWorkflowNode(ALDWorkflow parentWorkflow,
ALDOperator op)
Create a node
|
ALDWorkflowNode(ALDWorkflow parentWorkflow,
ALDOperator op,
boolean isInteriorShadowNode)
Create a node
|
Modifier and Type | Method and Description |
---|---|
Set<ALDWorkflowNode> |
getAncestors()
Return all ancestors of this node.
|
Set<ALDWorkflowNode> |
getChildren()
Return all children nodes of this node.
|
Set<ALDWorkflowNode> |
getDescendants()
Return the nodeIds of all descendants of the given node.
|
Integer |
getId()
Return the Id associated with this node.
|
protected Vector<ALDWorkflowEdge> |
getInEdges()
Returns all incoming edges.
|
Collection<ALDWorkflowEdge> |
getInEdgesForParameter(String parameterName)
Return all incoming edges for this node which
have their target at
parameterName . |
Collection<String> |
getMissingRequiredInputs()
Returns the names of all required input parameters of the operator object associated with the node
which are not linked and have a value of null
|
ALDOperator |
getOperator()
Returns the operator associated with this node.
|
String |
getOperatorExecutionProgressDescr() |
protected Vector<ALDWorkflowEdge> |
getOutEdges()
Returns all outgoing edges.
|
Collection<ALDWorkflowEdge> |
getOutEdgesForParameter(String parameterName)
Return outgoing edges for this node which
have their source at
parameterName . |
Set<ALDWorkflowNode> |
getParents()
Return all parents of this node.
|
ALDWorkflow |
getParentWorkflow() |
ALDWorkflowNode.ALDWorkflowNodeState |
getState()
Returns the current state of this node
|
boolean |
isConfigured()
Checks if this node is configured.
|
void |
print()
Print information of this node to standard out.
|
(package private) void |
resetParameter(String parameterName)
Reset the parameter
parameterName in the operator associated to
this node. |
protected void |
setOperator(ALDOperator newOp)
Sets the operator associated with this node.
|
void |
setOperatorExecutionProgressDescr(String operatorExecutionProgressDescr) |
protected void |
setParentWorkflow(ALDWorkflow parentWorkflow) |
protected void |
setState(ALDWorkflowNode.ALDWorkflowNodeState state)
Sets the state of this node
|
boolean |
stateGreaterEqual(ALDWorkflowNode.ALDWorkflowNodeState compareState)
Return true if the state of this node is greater equal the
compareState |
private ALDOperator op
public final boolean isInteriorShadowNode
ALDWorkflow
.private transient ALDWorkflowNode.ALDWorkflowNodeState state
private transient String operatorExecutionProgressDescr
private ALDWorkflow parentWorkflow
Vector<ALDWorkflowEdge> inEdges
Vector<ALDWorkflowEdge> outEdges
public ALDWorkflowNode(ALDWorkflow parentWorkflow, ALDOperator op)
parentWorkflow
- TODOop
- id
- public ALDWorkflowNode(ALDWorkflow parentWorkflow, ALDOperator op, boolean isInteriorShadowNode)
parentWorkflow
- TODOop
- id
- public ALDWorkflow getParentWorkflow()
protected void setParentWorkflow(ALDWorkflow parentWorkflow)
parentWorkflow
- the parentWorkflow to setpublic ALDOperator getOperator()
protected void setOperator(ALDOperator newOp) throws ALDWorkflowException
ALDWorkflowException
- if the new operator instance is of wrong typepublic ALDWorkflowNode.ALDWorkflowNodeState getState()
protected void setState(ALDWorkflowNode.ALDWorkflowNodeState state)
state
- New statepublic Integer getId()
public boolean stateGreaterEqual(ALDWorkflowNode.ALDWorkflowNodeState compareState)
compareState
compareState
- protected Vector<ALDWorkflowEdge> getInEdges()
protected Vector<ALDWorkflowEdge> getOutEdges()
public String getOperatorExecutionProgressDescr()
public void setOperatorExecutionProgressDescr(String operatorExecutionProgressDescr)
operatorExecutionProgressDescr
- the operatorExecutionProgressDescr to setpublic Set<ALDWorkflowNode> getParents()
public Set<ALDWorkflowNode> getChildren()
public Set<ALDWorkflowNode> getDescendants()
nodeId
- public Set<ALDWorkflowNode> getAncestors()
public Collection<ALDWorkflowEdge> getInEdgesForParameter(String parameterName)
parameterName
.parameterName
- parameterName
public Collection<ALDWorkflowEdge> getOutEdgesForParameter(String parameterName)
parameterName
.parameterName
- parameterName
public boolean isConfigured()
public Collection<String> getMissingRequiredInputs()
void resetParameter(String parameterName) throws ALDWorkflowException
parameterName
in the operator associated to
this node.
Currently this sets the parameters value to null.parameterName
- ALDWorkflowException
- if the parameter does not existspublic void print()
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.