public abstract class JIPipeParameterSlotAlgorithm extends JIPipeAlgorithm
JIPipeAlgorithm
that has an optional slot that allows to supply parameter data sets.JIPipeGraphNode.BaseDirectoryChangedEvent, JIPipeGraphNode.Serializer
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterUIChangedEvent
Modifier and Type | Field and Description |
---|---|
static String |
SLOT_PARAMETERS |
Constructor and Description |
---|
JIPipeParameterSlotAlgorithm(JIPipeNodeInfo info) |
JIPipeParameterSlotAlgorithm(JIPipeNodeInfo info,
JIPipeSlotConfiguration slotConfiguration) |
JIPipeParameterSlotAlgorithm(JIPipeParameterSlotAlgorithm other) |
Modifier and Type | Method and Description |
---|---|
void |
createUIInputSlotIconDescriptionMenuItems(String slotName,
List<ViewOnlyMenuItem> target)
Explanations added to the slot menu
Can be null
|
int |
getDataInputSlotCount()
Returns the number of input slots that are not parameter slots.
|
List<JIPipeInputDataSlot> |
getDataInputSlots()
Method that can be overwritten by child classes.
|
JIPipeInputDataSlot |
getFirstInputSlot()
Returns the first input slot according to the slot order.
|
List<JIPipeInputDataSlot> |
getNonParameterInputSlots() |
JIPipeDataSlot |
getParameterSlot()
Returns the parameter slot if enabled
|
JIPipeParameterSlotAlgorithmSettings |
getParameterSlotAlgorithmSettings() |
ImageIcon |
getUIInputSlotIcon(String slotName)
An icon that is displayed on the right-hand side of the input slot
Can be null
|
Dimension |
getUIInputSlotIconBaseDimensions(String slotName)
Size of the icon returned by getUIInputSlotIcon
Should be at most 16x16
Defaults to 12x12
|
boolean |
isParameterUIVisible(JIPipeParameterTree tree,
JIPipeParameterCollection subParameter)
Allows to override the visibility of sub-parameters inside the UI
|
void |
run(JIPipeProgressInfo progressInfo)
Runs the workload
|
abstract void |
runParameterSet(JIPipeProgressInfo progressInfo,
List<JIPipeTextAnnotation> parameterAnnotations)
Runs a parameter set iteration
|
canAutoPassThrough, canPassThrough, functionallyEquals, getThreadPool, isEnabled, isParameterUIVisible, isPassThrough, isPostprocessor, isPreprocessor, loadExample, reportValidity, runPassThrough, setEnabled, setPassThrough, setThreadPool
archiveTo, canUserDelete, clearLocations, clearSlotData, copySlotConfiguration, duplicate, fromJson, fromJsonNode, getAliasIdInParentGraph, getBaseDirectory, getCategory, getCompartmentDisplayName, getCompartmentUUIDInGraphAsString, getCompartmentUUIDInParentGraph, getCustomDescription, getDependencies, getDisplayName, getEventBus, getFirstOutputSlot, getInfo, getInputSlot, getInputSlotMap, getInputSlotOrder, getInputSlots, getInputSlotsWithRole, getInternalStoragePath, getLastInputSlot, getLastOutputSlot, getLocations, getLocationWithin, getName, getNewScratch, getOpenInputSlots, getOutputSlot, getOutputSlotMap, getOutputSlots, getOutputSlotsWithRole, getParentGraph, getProjectCompartment, getProjectDirectory, getScratchBaseDirectory, getSlotConfiguration, getStoragePath, getUUIDInParentGraph, hasInputSlot, hasOutputSlot, isBookmarked, isVisibleIn, onDeserialized, onParameterChanged, onParameterStructureChanged, onParameterUIChanged, onSlotConfigurationChanged, registerSubParameter, renderInputSlots, renderOutputSlots, setBaseDirectory, setBookmarked, setCustomDescription, setCustomName, setInfo, setInternalStoragePath, setLocations, setLocationWithin, setLocationWithin, setParentGraph, setProjectDirectory, setScratchBaseDirectory, setSlotConfiguration, setStoragePath, toggleSlot, toJson, triggerSlotsChangedEvent, updateGraphNodeSlots
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateValidityReport
addParameterChangeListener, addParameterChangeListener, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, setParameter, triggerParameterChange, triggerParameterStructureChange, triggerParameterUIChange
public static final String SLOT_PARAMETERS
public JIPipeParameterSlotAlgorithm(JIPipeNodeInfo info, JIPipeSlotConfiguration slotConfiguration)
public JIPipeParameterSlotAlgorithm(JIPipeNodeInfo info)
public JIPipeParameterSlotAlgorithm(JIPipeParameterSlotAlgorithm other)
public int getDataInputSlotCount()
public List<JIPipeInputDataSlot> getNonParameterInputSlots()
public List<JIPipeInputDataSlot> getDataInputSlots()
JIPipeGraphNode
getDataInputSlots
in class JIPipeGraphNode
public JIPipeInputDataSlot getFirstInputSlot()
JIPipeGraphNode
IndexOutOfBoundsException
if there is no input slot.getFirstInputSlot
in class JIPipeGraphNode
public JIPipeParameterSlotAlgorithmSettings getParameterSlotAlgorithmSettings()
public boolean isParameterUIVisible(JIPipeParameterTree tree, JIPipeParameterCollection subParameter)
JIPipeParameterCollection
tree
- the parameter tree that is used to access this parametersubParameter
- a sub parameterpublic JIPipeDataSlot getParameterSlot()
public Dimension getUIInputSlotIconBaseDimensions(String slotName)
JIPipeGraphNode
getUIInputSlotIconBaseDimensions
in class JIPipeGraphNode
slotName
- the slot namepublic ImageIcon getUIInputSlotIcon(String slotName)
JIPipeGraphNode
getUIInputSlotIcon
in class JIPipeGraphNode
slotName
- the slot namepublic void createUIInputSlotIconDescriptionMenuItems(String slotName, List<ViewOnlyMenuItem> target)
JIPipeGraphNode
createUIInputSlotIconDescriptionMenuItems
in class JIPipeGraphNode
slotName
- the slot nametarget
- the list of menu itemspublic void run(JIPipeProgressInfo progressInfo)
JIPipeGraphNode
run
in class JIPipeAlgorithm
progressInfo
- progress passed from the runnerpublic abstract void runParameterSet(JIPipeProgressInfo progressInfo, List<JIPipeTextAnnotation> parameterAnnotations)
progressInfo
- progress info from the runparameterAnnotations
- parameter annotationsCopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.