|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.workflows.ALDWorkflowNode
public class ALDWorkflowNode
This class represents a node in an Alida work flow.
Essentially it holds an ALDAOperator
object
and edges connecting parameters of this operator.
Nested Class Summary | |
---|---|
static class |
ALDWorkflowNode.ALDWorkflowNodeState
|
Field Summary | |
---|---|
boolean |
isInteriorShadowNode
Is true it his node is used as an interior shadow (or substitute) for the node holding this work flow {see ALDWorkflow . |
Constructor Summary | |
---|---|
ALDWorkflowNode(ALDWorkflow parentWorkflow,
ALDOperator op)
Create a node |
|
ALDWorkflowNode(ALDWorkflow parentWorkflow,
ALDOperator op,
boolean isInteriorShadowNode)
Create a node |
Method Summary | |
---|---|
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. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final boolean isInteriorShadowNode
ALDWorkflow
.
Constructor Detail |
---|
public ALDWorkflowNode(ALDWorkflow parentWorkflow, ALDOperator op)
parentWorkflow
- TODOop
- id
- public ALDWorkflowNode(ALDWorkflow parentWorkflow, ALDOperator op, boolean isInteriorShadowNode)
parentWorkflow
- TODOop
- id
- Method Detail |
---|
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()
public void print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |