public abstract class JIPipeParameterSlotAlgorithm extends JIPipeAlgorithm
JIPipeAlgorithm
that has an optional slot that allows to supply parameter data sets.JIPipeGraphNode.BaseDirectoryChangedEvent, JIPipeGraphNode.BaseDirectoryChangedEventEmitter, JIPipeGraphNode.BaseDirectoryChangedEventListener, JIPipeGraphNode.NodeSlotsChangedEvent, JIPipeGraphNode.NodeSlotsChangedEventEmitter, JIPipeGraphNode.NodeSlotsChangedEventListener, JIPipeGraphNode.Serializer
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterChangedEventEmitter, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEventEmitter, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEvent, JIPipeParameterCollection.ParameterUIChangedEventEmitter, JIPipeParameterCollection.ParameterUIChangedEventListener
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 |
onParameterChanged(JIPipeParameterCollection.ParameterChangedEvent event)
Triggered when a parameter is changed within the slot configuration.
|
void |
run(JIPipeGraphNodeRunContext runContext,
JIPipeProgressInfo progressInfo)
Runs the workload
|
abstract void |
runParameterSet(JIPipeGraphNodeRunContext runContext,
JIPipeProgressInfo progressInfo,
List<JIPipeTextAnnotation> parameterAnnotations)
Runs a parameter set iteration
|
canAutoPassThrough, canPassThrough, functionallyEquals, getDefaultCustomExpressionVariables, getRuntimePartition, isEnabled, isEnableDefaultCustomExpressionVariables, isParameterUIVisible, isPassThrough, isPostprocessor, isPreprocessor, isSkipped, loadExample, onDeserialized, reportValidity, runPassThrough, setEnabled, setPassThrough, setRuntimePartition, setSkipped
archiveTo, canUserDelete, clearLocations, clearSlotData, copySlotConfiguration, duplicate, emitNodeSlotsChangedEvent, fromJson, getAliasIdInParentGraph, getBaseDirectory, getBaseDirectoryChangedEventEmitter, getCategory, getCompartmentDisplayName, getCompartmentUUIDInGraphAsString, getCompartmentUUIDInParentGraph, getCustomDescription, getCustomName, getDependencies, getDisplayName, getEnvironmentDependencies, getFirstOutputSlot, getInfo, getInputSlot, getInputSlotMap, getInputSlotOrder, getInputSlots, getInputSlotsWithRole, getInternalStoragePath, getLastInputSlot, getLastOutputSlot, getName, getNewScratch, getNodeSlotsChangedEventEmitter, getNodeUILocationPerViewModePerCompartment, getNodeUILocationWithin, getOpenInputSlots, getOutputSlot, getOutputSlotMap, getOutputSlots, getOutputSlotsWithRole, getParentGraph, getProject, getProjectCompartment, getProjectDataDirs, getProjectDirectory, getRuntimeProject, getScratchBaseDirectory, getSlotConfiguration, getStoragePath, getTextDescription, getUUIDInParentGraph, hasInputSlot, hasOutputSlot, isBookmarked, isUiLocked, isVisibleIn, onSlotConfigurationChanged, renderInputSlots, renderOutputSlots, setBaseDirectory, setBookmarked, setCustomDescription, setCustomName, setInfo, setInternalStoragePath, setNodeUILocationPerViewModePerCompartment, setNodeUILocationWithin, setNodeUILocationWithin, setParentGraph, setProjectDirectory, setRuntimeProject, setScratchBaseDirectory, setSlotConfiguration, setStoragePath, setUiLocked, toggleSlot, toJson, updateGraphNodeSlots
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, onParameterStructureChanged, onParameterUIChanged, registerSubParameter, registerSubParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateValidityReport
onParameterUIChanged
onParameterStructureChanged
deserializeFromJsonNode, emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, serializeToJsonFile, serializeToJsonGenerator, serializeToJsonString, setParameter
public static final String SLOT_PARAMETERS
public JIPipeParameterSlotAlgorithm(JIPipeNodeInfo info, JIPipeSlotConfiguration slotConfiguration)
public JIPipeParameterSlotAlgorithm(JIPipeNodeInfo info)
public JIPipeParameterSlotAlgorithm(JIPipeParameterSlotAlgorithm other)
public void onParameterChanged(JIPipeParameterCollection.ParameterChangedEvent event)
JIPipeGraphNode
JIPipeGraphNode.NodeSlotsChangedEvent
onParameterChanged
in interface JIPipeParameterCollection.ParameterChangedEventListener
onParameterChanged
in class JIPipeGraphNode
event
- generated eventpublic 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
isParameterUIVisible
in interface JIPipeParameterCollection
isParameterUIVisible
in class JIPipeAlgorithm
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(JIPipeGraphNodeRunContext runContext, JIPipeProgressInfo progressInfo)
JIPipeGraphNode
run
in class JIPipeAlgorithm
runContext
- the context of the run processprogressInfo
- progress passed from the runnerpublic abstract void runParameterSet(JIPipeGraphNodeRunContext runContext, JIPipeProgressInfo progressInfo, List<JIPipeTextAnnotation> parameterAnnotations)
runContext
- the run contextprogressInfo
- progress info from the runparameterAnnotations
- parameter annotationsCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.