public class JIPipeGraphGCHelper extends Object
JIPipeGraph
Modifier and Type | Class and Description |
---|---|
static class |
JIPipeGraphGCHelper.SlotCompletedEvent |
Constructor and Description |
---|
JIPipeGraphGCHelper(JIPipeGraph graph) |
Modifier and Type | Method and Description |
---|---|
Set<JIPipeDataSlot> |
getCompletedSlots()
Gets all slots with a usage counter of zero
|
EventBus |
getEventBus() |
JIPipeGraph |
getGraph() |
Set<JIPipeDataSlot> |
getIncompleteSlots()
Gets all slots with a usage counter of greater than zero
|
void |
markAllAsCompleted()
Marks all remaining slots as completed
|
void |
markAsCompleted(JIPipeDataSlot slot)
Marks a slot node as done (all outgoing/ingoing data transfers have been handled) by setting the usage counter to zero
|
void |
markCopyOutputToInput(JIPipeDataSlot source,
JIPipeDataSlot target)
Marks an output slot as used
|
void |
markNodeExecuted(JIPipeGraphNode node)
Marks a node as executed, marking inputs for GC
|
String |
toString() |
public JIPipeGraphGCHelper(JIPipeGraph graph)
public void markAsCompleted(JIPipeDataSlot slot)
slot
- the slotpublic void markCopyOutputToInput(JIPipeDataSlot source, JIPipeDataSlot target)
source
- the output slottarget
- the input slotpublic void markNodeExecuted(JIPipeGraphNode node)
node
- the nodepublic void markAllAsCompleted()
public EventBus getEventBus()
public Set<JIPipeDataSlot> getCompletedSlots()
public Set<JIPipeDataSlot> getIncompleteSlots()
public JIPipeGraph getGraph()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.