public class JIPipeMultiIterationStep extends Object implements JIPipeIterationStep, Comparable<JIPipeMultiIterationStep>
JIPipeSingleIterationStep
used by JIPipeMergingAlgorithm
Constructor and Description |
---|
JIPipeMultiIterationStep(JIPipeGraphNode node)
Creates a new interface
|
JIPipeMultiIterationStep(JIPipeMultiIterationStep other)
Creates a copy
|
Modifier and Type | Method and Description |
---|---|
void |
addEmptySlot(JIPipeDataSlot slot)
Ensures that the specified slot is registered to the iteration step
|
void |
addInputData(JIPipeDataSlot slot,
Collection<Integer> rowsToAdd)
Adds the data row of a given slot.
|
void |
addInputData(JIPipeDataSlot slot,
int row)
Adds the data row of a given slot.
|
void |
addMergedDataAnnotation(JIPipeDataAnnotation annotation,
JIPipeDataAnnotationMergeMode strategy)
Adds an annotation to the annotation list
|
void |
addMergedDataAnnotations(Collection<JIPipeDataAnnotation> annotations,
JIPipeDataAnnotationMergeMode strategy)
Adds annotations to the annotation list
|
void |
addMergedTextAnnotation(JIPipeTextAnnotation annotation,
JIPipeTextAnnotationMergeMode strategy)
Adds an annotation to the annotation list
|
void |
addMergedTextAnnotations(List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode strategy)
Adds annotations to the merged annotation storage of this interface.
|
void |
addMergedTextAnnotations(Map<String,String> annotations,
JIPipeTextAnnotationMergeMode strategy)
Adds annotations to the merged annotation storage of this interface.
|
void |
addOutputData(JIPipeOutputDataSlot slot,
JIPipeDataItemStore data,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations that are added to all annotations should be set up till this point
|
void |
addOutputData(JIPipeOutputDataSlot slot,
JIPipeDataItemStore data,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations that are added to all annotations should be set up till this point
|
void |
addOutputData(JIPipeOutputDataSlot slot,
JIPipeDataItemStore data,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeTextAnnotationMergeMode annotationMergeStrategy,
List<JIPipeDataAnnotation> additionalDataAnnotations,
JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy,
JIPipeProgressInfo progressInfo) |
void |
addOutputData(JIPipeOutputDataSlot slot,
JIPipeData data,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations that are added to all annotations should be set up till this point
|
void |
addOutputData(JIPipeOutputDataSlot slot,
JIPipeData data,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations that are added to all annotations should be set up till this point
|
void |
addOutputData(JIPipeOutputDataSlot slot,
JIPipeData data,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
List<JIPipeDataAnnotation> additionalDataAnnotations,
JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations that are added to all annotations should be set up till this point
|
void |
addOutputData(String slotName,
JIPipeDataItemStore data,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations should be set up till this point
|
void |
addOutputData(String slotName,
JIPipeDataItemStore data,
JIPipeTextAnnotationMergeMode annotationMergeStrategy,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations should be set up till this point
|
void |
addOutputData(String slotName,
JIPipeDataItemStore data,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations should be set up till this point
|
void |
addOutputData(String slotName,
JIPipeData data,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations should be set up till this point
|
void |
addOutputData(String slotName,
JIPipeData data,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations should be set up till this point
|
void |
addOutputData(String slotName,
JIPipeData data,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeTextAnnotationMergeMode annotationMergeStrategy,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations should be set up till this point
|
void |
addOutputData(String slotName,
JIPipeData data,
List<JIPipeTextAnnotation> additionalAnnotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
List<JIPipeDataAnnotation> additionalDataAnnotations,
JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy,
JIPipeProgressInfo progressInfo)
Writes output data into the provided slot
Please note that annotations should be set up till this point
|
int |
compareTo(JIPipeMultiIterationStep o) |
JIPipeDataContext |
createNewContext()
Creates a context for new data that inherits direct predecessors from this iteration step's input
|
<T extends JIPipeData> |
getInputData(JIPipeDataSlot slot,
Class<T> dataClass,
JIPipeProgressInfo progressInfo)
Gets stored data from an input slot
|
<T extends JIPipeData> |
getInputData(JIPipeDataSlot slot,
int row,
Class<T> dataClass,
JIPipeProgressInfo progressInfo)
Gets stored data from an input slot
|
<T extends JIPipeData> |
getInputData(String slotName,
Class<T> dataClass,
JIPipeProgressInfo progressInfo)
Gets stored data from an input slot
|
<T extends JIPipeData> |
getInputData(String slotName,
int row,
Class<T> dataClass,
JIPipeProgressInfo progressInfo)
Gets stored data from an input slot
|
List<JIPipeDataAnnotation> |
getInputDataAnnotations(JIPipeDataSlot slot)
Gets the original annotations of given slot
This returns all annotations (of all rows)
|
List<JIPipeDataAnnotation> |
getInputDataAnnotations(JIPipeDataSlot slot,
Collection<Integer> rows)
Gets the original annotations of given slot
|
List<JIPipeDataAnnotation> |
getInputDataAnnotations(JIPipeDataSlot slot,
int row)
Gets the original annotations of given slot
|
List<JIPipeDataAnnotation> |
getInputDataAnnotations(String slotName)
Gets the original annotations of given slot
This returns all annotations (of all rows)
|
List<JIPipeDataAnnotation> |
getInputDataAnnotations(String slotName,
Collection<Integer> rows)
Gets the original annotations of given slot
|
List<JIPipeDataAnnotation> |
getInputDataAnnotations(String slotName,
int row)
Gets the original annotations of given slot
|
List<JIPipeDataItemStore> |
getInputDataStore(JIPipeDataSlot slot)
Gets stored data from an input slot
|
List<JIPipeDataItemStore> |
getInputDataStore(String slotName)
Gets stored data from an input slot
|
Set<Integer> |
getInputRows(JIPipeDataSlot slot)
Returns the row indices that belong to this data interface
|
Set<Integer> |
getInputRows(String slot)
Returns the row indices that belong to this data interface
|
Set<String> |
getInputSlotNames()
Gets the names of all input slots that are referenced
|
Set<Integer> |
getInputSlotRowIndices(String slotName)
Returns the referenced indices of given input slot name
|
Map<JIPipeDataSlot,Set<Integer>> |
getInputSlotRows()
Raw access to all data stored in the batch
|
Set<JIPipeDataSlot> |
getInputSlots()
Gets the input slots that are referenced
|
List<JIPipeTextAnnotation> |
getInputTextAnnotations(JIPipeDataSlot slot)
Gets the original annotations of given slot
This returns all annotations (of all rows)
|
List<JIPipeTextAnnotation> |
getInputTextAnnotations(JIPipeDataSlot slot,
Collection<Integer> rows)
Gets the original annotations of given slot
|
List<JIPipeTextAnnotation> |
getInputTextAnnotations(JIPipeDataSlot slot,
int row)
Gets the original annotations of given slot
|
List<JIPipeTextAnnotation> |
getInputTextAnnotations(String slotName)
Gets the original annotations of given slot
This returns all annotations (of all rows)
|
List<JIPipeTextAnnotation> |
getInputTextAnnotations(String slotName,
Collection<Integer> rows)
Gets the original annotations of given slot
|
List<JIPipeTextAnnotation> |
getInputTextAnnotations(String slotName,
int row)
Gets the original annotations of given slot
|
JIPipeDataAnnotation |
getMergedDataAnnotation(String name)
Returns a merged annotation
|
Map<String,JIPipeDataAnnotation> |
getMergedDataAnnotations()
Gets the list of annotations.
|
JIPipeTextAnnotation |
getMergedTextAnnotation(String name)
Returns a merged annotation
|
Map<String,JIPipeTextAnnotation> |
getMergedTextAnnotations()
Gets the list of annotations.
|
JIPipeGraphNode |
getNode()
The node that the iteration step is working on
|
boolean |
isEmpty()
Returns true if no data is referenced
|
boolean |
isIncomplete()
Returns true if there is at least one slot that has no rows attached to it
|
boolean |
isSingle()
Returns true if each slot only has one row
|
void |
removeMergedTextAnnotation(String info)
Removes an annotation of provided type
|
void |
setInputData(JIPipeDataSlot slot,
int row)
Sets the input slot to only one row
|
void |
setMergedDataAnnotations(Map<String,JIPipeDataAnnotation> dataAnnotations) |
void |
setMergedTextAnnotations(Map<String,JIPipeTextAnnotation> annotations) |
JIPipeDataSlot |
toDummySlot(JIPipeDataSlotInfo info,
JIPipeGraphNode node,
JIPipeDataSlot sourceSlot,
JIPipeProgressInfo progressInfo)
Creates a new dummy slot that contains the data of one input slot and the annotations of this batch
|
String |
toString() |
public JIPipeMultiIterationStep(JIPipeGraphNode node)
node
- The algorithmpublic JIPipeMultiIterationStep(JIPipeMultiIterationStep other)
other
- the originalpublic JIPipeGraphNode getNode()
JIPipeIterationStep
getNode
in interface JIPipeIterationStep
public Map<JIPipeDataSlot,Set<Integer>> getInputSlotRows()
public void addInputData(JIPipeDataSlot slot, int row)
slot
- the data slotrow
- the rowpublic void addInputData(JIPipeDataSlot slot, Collection<Integer> rowsToAdd)
slot
- the data slotrowsToAdd
- the rows to addpublic void setInputData(JIPipeDataSlot slot, int row)
slot
- the slotrow
- the rowpublic void addMergedDataAnnotation(JIPipeDataAnnotation annotation, JIPipeDataAnnotationMergeMode strategy)
annotation
- added annotation. Cannot be null.public void addMergedDataAnnotations(Collection<JIPipeDataAnnotation> annotations, JIPipeDataAnnotationMergeMode strategy)
annotations
- added annotationspublic void addMergedTextAnnotations(Map<String,String> annotations, JIPipeTextAnnotationMergeMode strategy)
annotations
- the annotationsstrategy
- strategy to apply on merging existing valuespublic void addMergedTextAnnotations(List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode strategy)
annotations
- the annotationsstrategy
- strategy to apply on merging existing valuespublic <T extends JIPipeData> List<T> getInputData(String slotName, Class<T> dataClass, JIPipeProgressInfo progressInfo)
T
- Data typeslotName
- The slot namedataClass
- The data type that should be returnedprogressInfo
- data access progresspublic <T extends JIPipeData> T getInputData(String slotName, int row, Class<T> dataClass, JIPipeProgressInfo progressInfo)
T
- Data typeslotName
- The slot namerow
- the rowdataClass
- The data type that should be returnedprogressInfo
- data access progresspublic List<JIPipeDataItemStore> getInputDataStore(String slotName)
slotName
- The slot namepublic <T extends JIPipeData> List<T> getInputData(JIPipeDataSlot slot, Class<T> dataClass, JIPipeProgressInfo progressInfo)
T
- Data typeslot
- The slotdataClass
- The data type that should be returnedprogressInfo
- data access progresspublic <T extends JIPipeData> T getInputData(JIPipeDataSlot slot, int row, Class<T> dataClass, JIPipeProgressInfo progressInfo)
T
- Data typeslot
- The slotrow
- the rowdataClass
- The data type that should be returnedprogressInfo
- data access progresspublic List<JIPipeDataItemStore> getInputDataStore(JIPipeDataSlot slot)
slot
- The slotpublic Set<Integer> getInputRows(String slot)
slot
- slot namepublic Set<Integer> getInputRows(JIPipeDataSlot slot)
slot
- slotpublic Map<String,JIPipeTextAnnotation> getMergedTextAnnotations()
public void setMergedTextAnnotations(Map<String,JIPipeTextAnnotation> annotations)
public Map<String,JIPipeDataAnnotation> getMergedDataAnnotations()
public void setMergedDataAnnotations(Map<String,JIPipeDataAnnotation> dataAnnotations)
public void addMergedTextAnnotation(JIPipeTextAnnotation annotation, JIPipeTextAnnotationMergeMode strategy)
annotation
- added annotation. Cannot be null.public JIPipeDataContext createNewContext()
public void removeMergedTextAnnotation(String info)
info
- removed annotationpublic JIPipeTextAnnotation getMergedTextAnnotation(String name)
name
- name of the annotationpublic JIPipeDataAnnotation getMergedDataAnnotation(String name)
name
- name of the annotationpublic void addOutputData(String slotName, JIPipeData data, JIPipeProgressInfo progressInfo)
slotName
- Slot namedata
- Added dataprogressInfo
- data storage progresspublic void addOutputData(String slotName, JIPipeDataItemStore data, JIPipeProgressInfo progressInfo)
slotName
- Slot namedata
- Added dataprogressInfo
- the progress infopublic void addOutputData(String slotName, JIPipeData data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeProgressInfo progressInfo)
slotName
- Slot namedata
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesprogressInfo
- data storage progresspublic void addOutputData(String slotName, JIPipeDataItemStore data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeProgressInfo progressInfo)
slotName
- Slot namedata
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesprogressInfo
- the progress infopublic void addOutputData(String slotName, JIPipeData data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeTextAnnotationMergeMode annotationMergeStrategy, JIPipeProgressInfo progressInfo)
slotName
- Slot namedata
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesprogressInfo
- data storage progresspublic void addOutputData(String slotName, JIPipeDataItemStore data, JIPipeTextAnnotationMergeMode annotationMergeStrategy, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeProgressInfo progressInfo)
slotName
- Slot namedata
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesprogressInfo
- the progress infopublic void addOutputData(JIPipeOutputDataSlot slot, JIPipeDataItemStore data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeTextAnnotationMergeMode annotationMergeStrategy, List<JIPipeDataAnnotation> additionalDataAnnotations, JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy, JIPipeProgressInfo progressInfo)
public void addOutputData(JIPipeOutputDataSlot slot, JIPipeData data, JIPipeProgressInfo progressInfo)
slot
- Slot instancedata
- Added dataprogressInfo
- data storage progresspublic void addOutputData(JIPipeOutputDataSlot slot, JIPipeDataItemStore data, JIPipeProgressInfo progressInfo)
slot
- Slot instancedata
- Added dataprogressInfo
- the progress infopublic void addOutputData(String slotName, JIPipeData data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeTextAnnotationMergeMode mergeStrategy, List<JIPipeDataAnnotation> additionalDataAnnotations, JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy, JIPipeProgressInfo progressInfo)
slotName
- Slot namedata
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesmergeStrategy
- how annotations should be mergedprogressInfo
- storage progresspublic void addOutputData(JIPipeOutputDataSlot slot, JIPipeData data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeTextAnnotationMergeMode mergeStrategy, List<JIPipeDataAnnotation> additionalDataAnnotations, JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy, JIPipeProgressInfo progressInfo)
slot
- Slot instancedata
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesmergeStrategy
- how annotations should be mergedprogressInfo
- storage progresspublic void addOutputData(JIPipeOutputDataSlot slot, JIPipeData data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeTextAnnotationMergeMode mergeStrategy, JIPipeProgressInfo progressInfo)
slot
- Slot instancedata
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesmergeStrategy
- how annotations should be mergedprogressInfo
- data storage progresspublic void addOutputData(JIPipeOutputDataSlot slot, JIPipeDataItemStore data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeTextAnnotationMergeMode mergeStrategy, JIPipeProgressInfo progressInfo)
slot
- Slot instancedata
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesmergeStrategy
- how annotations should be mergedprogressInfo
- the progress infopublic List<JIPipeTextAnnotation> getInputTextAnnotations(JIPipeDataSlot slot)
slot
- the slotpublic List<JIPipeTextAnnotation> getInputTextAnnotations(String slotName)
slotName
- the slotpublic List<JIPipeDataAnnotation> getInputDataAnnotations(JIPipeDataSlot slot)
slot
- the slotpublic List<JIPipeDataAnnotation> getInputDataAnnotations(String slotName)
slotName
- the slotpublic List<JIPipeTextAnnotation> getInputTextAnnotations(JIPipeDataSlot slot, Collection<Integer> rows)
slot
- the slotpublic List<JIPipeTextAnnotation> getInputTextAnnotations(String slotName, Collection<Integer> rows)
slotName
- the slotpublic List<JIPipeDataAnnotation> getInputDataAnnotations(JIPipeDataSlot slot, Collection<Integer> rows)
slot
- the slotpublic List<JIPipeDataAnnotation> getInputDataAnnotations(String slotName, Collection<Integer> rows)
slotName
- the slotpublic List<JIPipeTextAnnotation> getInputTextAnnotations(JIPipeDataSlot slot, int row)
slot
- the slotpublic List<JIPipeTextAnnotation> getInputTextAnnotations(String slotName, int row)
slotName
- the slotpublic List<JIPipeDataAnnotation> getInputDataAnnotations(JIPipeDataSlot slot, int row)
slot
- the slotpublic List<JIPipeDataAnnotation> getInputDataAnnotations(String slotName, int row)
slotName
- the slotpublic boolean isEmpty()
public boolean isIncomplete()
public boolean isSingle()
public JIPipeDataSlot toDummySlot(JIPipeDataSlotInfo info, JIPipeGraphNode node, JIPipeDataSlot sourceSlot, JIPipeProgressInfo progressInfo)
info
- info of the new slotnode
- the node that will own the new slotsourceSlot
- the source slotprogressInfo
- the progress infopublic int compareTo(JIPipeMultiIterationStep o)
compareTo
in interface Comparable<JIPipeMultiIterationStep>
public void addEmptySlot(JIPipeDataSlot slot)
slot
- the slotpublic Set<Integer> getInputSlotRowIndices(String slotName)
JIPipeIterationStep
getInputSlotRowIndices
in interface JIPipeIterationStep
slotName
- the slot namepublic Set<String> getInputSlotNames()
JIPipeIterationStep
getInputSlotNames
in interface JIPipeIterationStep
public Set<JIPipeDataSlot> getInputSlots()
JIPipeIterationStep
getInputSlots
in interface JIPipeIterationStep
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.