protected class ALDOperatorCollection.OperatorExecutionProxy extends Object implements ALDWorkflowEventListener
Modifier and Type | Field and Description |
---|---|
protected ALDWorkflow |
alidaWorkflow
Reference to the underlying Alida workflow object.
|
protected EventListenerList |
listenerList
Collection of registered event listeners.
|
protected HashMap<ALDWorkflowNodeID,T> |
opNodeIDs
Mapping of workflow node IDs of active operators to operator objects.
|
protected HashMap<String,ALDWorkflowNodeID> |
workflowNodeIDs
Mapping of operators UIDs to workflow node IDs.
|
Constructor and Description |
---|
OperatorExecutionProxy()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
fireALDOperatorCollectionEvent(ALDOperatorCollectionEvent ev)
Pass events to registered listeners.
|
protected ALDWorkflowNode.ALDWorkflowNodeState |
getOpState(ALDWorkflowNodeID nid)
Request the state of the operator workflow node.
|
void |
handleALDWorkflowEvent(ALDWorkflowEvent event)
Method which is called on event occurrence.
|
void |
nodeParameterChanged()
Notify workflow that operator object parameters changed.
|
protected void |
processWorkflowEventQueue()
Processes all events that were recently added to the queue.
|
protected void |
runWorkflow(Collection<String> opUIDs)
Executes the workflow, i.e., the set of selected operators.
|
protected ALDWorkflow alidaWorkflow
protected volatile EventListenerList listenerList
protected HashMap<ALDWorkflowNodeID,T extends ALDOperatorCollectionElement> opNodeIDs
protected HashMap<String,ALDWorkflowNodeID> workflowNodeIDs
public OperatorExecutionProxy() throws ALDOperatorException
ALDOperatorException
- Thrown in case of initialization failure.public void nodeParameterChanged() throws ALDWorkflowException
ALDWorkflowException
- Thrown in case of update failure.protected ALDWorkflowNode.ALDWorkflowNodeState getOpState(ALDWorkflowNodeID nid) throws ALDWorkflowException
nid
- Workflow node ID of operator.ALDWorkflowException
- Thrown in case of problems/failures.protected void runWorkflow(Collection<String> opUIDs)
There is no specific order in which the operators are run.
opUIDs
- List of unique class identifiers for operators to run.protected void processWorkflowEventQueue()
Note that this function needs to be called after all actions on the Alida workflow except calls to 'run' methods.
public void handleALDWorkflowEvent(ALDWorkflowEvent event)
ALDWorkflowEventListener
handleALDWorkflowEvent
in interface ALDWorkflowEventListener
event
- Event to be handled.public void fireALDOperatorCollectionEvent(ALDOperatorCollectionEvent ev)
ev
- Event to propagate to listeners.Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.