|
||||||||
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 | |
---|---|
(package private) java.util.Vector<ALDWorkflowEdge> |
inEdges
all incoming edges. |
protected 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. |
(package private) java.util.Vector<ALDWorkflowEdge> |
outEdges
outgoing edges. |
private ALDWorkflow |
parentWorkflow
This is the enclosing work flow. |
private ALDWorkflowNode.ALDWorkflowNodeState |
state
The state of the node |
Constructor Summary | |
---|---|
ALDWorkflowNode(ALDWorkflow parentWorkflow,
ALDOperator op)
Create a node |
|
ALDWorkflowNode(ALDWorkflow parentWorkflow,
ALDOperator op,
boolean isInteriorShadowNode)
Create a node |
Method Summary | |
---|---|
java.util.Set<ALDWorkflowNode> |
getAncestors()
Return all ancestors of this node. |
java.util.Set<ALDWorkflowNode> |
getChildren()
Return all children nodes of this node. |
java.util.Set<ALDWorkflowNode> |
getDescendants()
Return the nodeIds of all descendants of the given node. |
java.lang.Integer |
getId()
Return the Id associated with this node. |
protected java.util.Vector<ALDWorkflowEdge> |
getInEdges()
Returns all incoming edges. |
java.util.Collection<ALDWorkflowEdge> |
getInEdgesForParameter(java.lang.String parameterName)
Return all incoming edges for this node which have their target at parameterName . |
java.util.Collection<java.lang.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. |
protected java.util.Vector<ALDWorkflowEdge> |
getOutEdges()
Returns all outgoing edges. |
java.util.Collection<ALDWorkflowEdge> |
getOutEdgesForParameter(java.lang.String parameterName)
Return outgoing edges for this node which have their source at parameterName . |
java.util.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(java.lang.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. |
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 |
---|
java.util.Vector<ALDWorkflowEdge> inEdges
protected final boolean isInteriorShadowNode
ALDWorkflow
.
private ALDOperator op
java.util.Vector<ALDWorkflowEdge> outEdges
private ALDWorkflow parentWorkflow
private ALDWorkflowNode.ALDWorkflowNodeState state
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 java.util.Set<ALDWorkflowNode> getAncestors()
public java.util.Set<ALDWorkflowNode> getChildren()
public java.util.Set<ALDWorkflowNode> getDescendants()
nodeId
-
public java.lang.Integer getId()
protected java.util.Vector<ALDWorkflowEdge> getInEdges()
public java.util.Collection<ALDWorkflowEdge> getInEdgesForParameter(java.lang.String parameterName)
parameterName
.
parameterName
-
parameterName
public java.util.Collection<java.lang.String> getMissingRequiredInputs()
public ALDOperator getOperator()
protected java.util.Vector<ALDWorkflowEdge> getOutEdges()
public java.util.Collection<ALDWorkflowEdge> getOutEdgesForParameter(java.lang.String parameterName)
parameterName
.
parameterName
-
parameterName
public java.util.Set<ALDWorkflowNode> getParents()
public ALDWorkflow getParentWorkflow()
public ALDWorkflowNode.ALDWorkflowNodeState getState()
public boolean isConfigured()
public void print()
void resetParameter(java.lang.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 existsprotected void setOperator(ALDOperator newOp) throws ALDWorkflowException
ALDWorkflowException
- if the new operator instance is of wrong typeprotected void setParentWorkflow(ALDWorkflow parentWorkflow)
parentWorkflow
- the parentWorkflow to setprotected void setState(ALDWorkflowNode.ALDWorkflowNodeState state)
state
- New statepublic boolean stateGreaterEqual(ALDWorkflowNode.ALDWorkflowNodeState compareState)
compareState
compareState
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |