public class JIPipeSingleIterationStep extends Object implements JIPipeIterationStep, Comparable<JIPipeSingleIterationStep>
Constructor and Description |
---|
JIPipeSingleIterationStep(JIPipeGraphNode node)
Creates a new interface
|
JIPipeSingleIterationStep(JIPipeSingleIterationStep other)
Creates a copy
|
Modifier and Type | Method and Description |
---|---|
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(Collection<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode strategy)
Adds annotations to the merged annotation storage of this interface.
|
void |
addOutputData(JIPipeOutputDataSlot slot,
JIPipeDataItemStore virtualData,
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(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,
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,
JIPipeTextAnnotationMergeMode mergeStrategy,
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(JIPipeSingleIterationStep 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(String slotName,
Class<T> dataClass,
JIPipeProgressInfo progressInfo)
Gets stored data from an input slot
|
List<JIPipeDataAnnotation> |
getInputDataAnnotations(JIPipeDataSlot slot)
Gets the original annotations of given slot
|
List<JIPipeDataAnnotation> |
getInputDataAnnotations(String slotName)
Gets the original annotations of given slot
|
int |
getInputRow(JIPipeDataSlot slot)
Returns the row of the data in the original data slot
|
int |
getInputRow(String slot)
Returns the row of the data in the original data slot
|
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,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
|
List<JIPipeTextAnnotation> |
getInputTextAnnotations(String slotName)
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
|
void |
removeMergedDataAnnotation(String name)
Removes a data annotation
|
void |
removeMergedTextAnnotation(String name)
Removes an annotation of provided type
|
void |
setInputData(JIPipeDataSlot slot,
int row)
Sets the data row of a given slot.
|
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 JIPipeSingleIterationStep(JIPipeGraphNode node)
node
- The algorithmpublic JIPipeSingleIterationStep(JIPipeSingleIterationStep other)
other
- the originalpublic JIPipeGraphNode getNode()
JIPipeIterationStep
getNode
in interface JIPipeIterationStep
public 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 Map<JIPipeDataSlot,Integer> getInputSlotRows()
public void setInputData(JIPipeDataSlot slot, int row)
slot
- the data slotrow
- the rowpublic void addMergedTextAnnotations(Collection<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode strategy)
annotations
- the annotationsstrategy
- strategy to apply on merging existing valuespublic <T extends JIPipeData> T getInputData(String slotName, Class<T> dataClass, JIPipeProgressInfo progressInfo)
T
- Data typeslotName
- The slot namedataClass
- The data type that should be returnedprogressInfo
- storage progresspublic <T extends JIPipeData> T getInputData(JIPipeDataSlot slot, Class<T> dataClass, JIPipeProgressInfo progressInfo)
T
- Data typeslot
- The slotdataClass
- The data type that should be returnedprogressInfo
- storage progresspublic 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 void addMergedDataAnnotation(JIPipeDataAnnotation annotation, JIPipeDataAnnotationMergeMode strategy)
annotation
- added annotation. Cannot be null.public void addMergedDataAnnotations(Collection<JIPipeDataAnnotation> annotations, JIPipeDataAnnotationMergeMode strategy)
annotations
- added annotationspublic void removeMergedTextAnnotation(String name)
name
- removed annotationpublic void removeMergedDataAnnotation(String name)
name
- the namepublic JIPipeTextAnnotation getMergedTextAnnotation(String name)
name
- name of the annotationpublic JIPipeDataAnnotation getMergedDataAnnotation(String name)
name
- name of the annotationpublic JIPipeDataContext createNewContext()
public void addOutputData(String slotName, JIPipeData data, JIPipeProgressInfo progressInfo)
slotName
- Slot namedata
- Added dataprogressInfo
- storage progresspublic void addOutputData(String slotName, JIPipeData data, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeTextAnnotationMergeMode mergeStrategy, 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(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, JIPipeProgressInfo progressInfo)
slot
- Slot instancedata
- Added dataprogressInfo
- 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
- 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, JIPipeDataItemStore virtualData, List<JIPipeTextAnnotation> additionalAnnotations, JIPipeTextAnnotationMergeMode mergeStrategy, List<JIPipeDataAnnotation> additionalDataAnnotations, JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy, JIPipeProgressInfo progressInfo)
slot
- Slot instancevirtualData
- Added dataadditionalAnnotations
- Annotations that are added additionally to the merged onesmergeStrategy
- how annotations should be mergedprogressInfo
- storage progresspublic 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 getInputRow(String slot)
slot
- the slot namepublic int getInputRow(JIPipeDataSlot slot)
slot
- the slotpublic int compareTo(JIPipeSingleIterationStep o)
compareTo
in interface Comparable<JIPipeSingleIterationStep>
public 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.