public class JIPipeGraphRunner extends Object implements JIPipeRunnable, JIPipeGraphGCHelper.SlotCompletedEventListener
JIPipeGraph
.
This does not do any data storage or caching.
Use this class for nested algorithm graph runs (like GraphWrapperAlgorithm
)
Use JIPipeProjectRun
for full project runs.JIPipeRunnable.EnqeuedEventListener, JIPipeRunnable.EnqueuedEvent, JIPipeRunnable.EnqueuedEventEmitter, JIPipeRunnable.FinishedEvent, JIPipeRunnable.FinishedEventEmitter, JIPipeRunnable.FinishedEventListener, JIPipeRunnable.InterruptedEvent, JIPipeRunnable.InterruptedEventEmitter, JIPipeRunnable.InterruptedEventListener, JIPipeRunnable.ProgressEvent, JIPipeRunnable.ProgressEventEmitter, JIPipeRunnable.ProgressEventListener, JIPipeRunnable.StartedEvent, JIPipeRunnable.StartedEventEmitter, JIPipeRunnable.StartedEventListener
Constructor and Description |
---|
JIPipeGraphRunner(JIPipeGraph algorithmGraph)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
JIPipeGraph |
getAlgorithmGraph() |
Set<JIPipeGraphNode> |
getAlgorithmsWithExternalInput() |
Set<JIPipeGraphNode> |
getPersistentDataNodes() |
JIPipeProgressInfo |
getProgressInfo()
The info object that allows communication with the run
|
String |
getTaskLabel()
A name for the runnable
|
JIPipeFixedThreadPool |
getThreadPool() |
void |
onGCSlotCompletedEvent(JIPipeGraphGCHelper.SlotCompletedEvent event) |
void |
run() |
void |
setAlgorithmsWithExternalInput(Set<JIPipeGraphNode> algorithmsWithExternalInput) |
void |
setPersistentDataNodes(Set<JIPipeGraphNode> persistentDataNodes) |
void |
setProgressInfo(JIPipeProgressInfo progressInfo)
Sets the progress info of this runnable
|
void |
setThreadPool(JIPipeFixedThreadPool threadPool) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFinished, onInterrupted
public JIPipeGraphRunner(JIPipeGraph algorithmGraph)
algorithmGraph
- the algorithm graph to runpublic JIPipeGraph getAlgorithmGraph()
public Set<JIPipeGraphNode> getAlgorithmsWithExternalInput()
public void setAlgorithmsWithExternalInput(Set<JIPipeGraphNode> algorithmsWithExternalInput)
public JIPipeProgressInfo getProgressInfo()
JIPipeRunnable
getProgressInfo
in interface JIPipeRunnable
public void setProgressInfo(JIPipeProgressInfo progressInfo)
JIPipeRunnable
setProgressInfo
in interface JIPipeRunnable
progressInfo
- the info objectpublic String getTaskLabel()
JIPipeRunnable
getTaskLabel
in interface JIPipeRunnable
public JIPipeFixedThreadPool getThreadPool()
public void setThreadPool(JIPipeFixedThreadPool threadPool)
public Set<JIPipeGraphNode> getPersistentDataNodes()
public void setPersistentDataNodes(Set<JIPipeGraphNode> persistentDataNodes)
public void onGCSlotCompletedEvent(JIPipeGraphGCHelper.SlotCompletedEvent event)
onGCSlotCompletedEvent
in interface JIPipeGraphGCHelper.SlotCompletedEventListener
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.