public class PathListDataSource extends JIPipeAlgorithm
JIPipeGraphNode.BaseDirectoryChangedEvent, JIPipeGraphNode.Serializer
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterUIChangedEvent
Constructor and Description |
---|
PathListDataSource(JIPipeNodeInfo info)
Creates a new instance
|
PathListDataSource(PathListDataSource other)
Copies the algorithm
|
Modifier and Type | Method and Description |
---|---|
void |
archiveTo(JIPipeWriteDataStorage projectStorage,
JIPipeWriteDataStorage wrappedExternalStorage,
JIPipeProgressInfo progressInfo,
Path originalBaseDirectory)
Called when the node is being archived into the specified storage.
|
void |
convertPathsToAbsolute() |
void |
convertPathsToRelative() |
PathList |
getAbsolutePaths() |
PathList |
getPaths() |
PathList |
getRelativePaths() |
void |
reportValidity(JIPipeIssueReport report)
Generates a validity report
|
void |
run(JIPipeProgressInfo progressInfo)
Runs the workload
|
void |
setBaseDirectory(Path baseDirectory)
Sets the current work directory of this algorithm.
|
void |
setPaths(PathList paths)
Sets the folder path
|
canAutoPassThrough, canPassThrough, functionallyEquals, getThreadPool, isEnabled, isParameterUIVisible, isPassThrough, isPostprocessor, isPreprocessor, loadExample, runPassThrough, setEnabled, setPassThrough, setThreadPool
canUserDelete, clearLocations, clearSlotData, copySlotConfiguration, createUIInputSlotIconDescriptionMenuItems, duplicate, fromJson, fromJsonNode, getAliasIdInParentGraph, getBaseDirectory, getCategory, getCompartmentDisplayName, getCompartmentUUIDInGraphAsString, getCompartmentUUIDInParentGraph, getCustomDescription, getDataInputSlots, getDependencies, getDisplayName, getEventBus, getFirstInputSlot, 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, getUIInputSlotIcon, getUIInputSlotIconBaseDimensions, getUUIDInParentGraph, hasInputSlot, hasOutputSlot, isBookmarked, isVisibleIn, onDeserialized, onParameterChanged, onParameterStructureChanged, onParameterUIChanged, onSlotConfigurationChanged, registerSubParameter, renderInputSlots, renderOutputSlots, 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, isParameterUIVisible, setParameter, triggerParameterChange, triggerParameterStructureChange, triggerParameterUIChange
public PathListDataSource(JIPipeNodeInfo info)
info
- The algorithm infopublic PathListDataSource(PathListDataSource other)
other
- The originalpublic void run(JIPipeProgressInfo progressInfo)
JIPipeGraphNode
run
in class JIPipeAlgorithm
progressInfo
- progress passed from the runnerpublic PathList getPaths()
public void setPaths(PathList paths)
paths
- Folder pathspublic PathList getAbsolutePaths()
public PathList getRelativePaths()
public void archiveTo(JIPipeWriteDataStorage projectStorage, JIPipeWriteDataStorage wrappedExternalStorage, JIPipeProgressInfo progressInfo, Path originalBaseDirectory)
JIPipeGraphNode
archiveTo
in class JIPipeGraphNode
projectStorage
- the storage where the data will be archived. storage where the project itself is located.wrappedExternalStorage
- storage where wrapped external files are putprogressInfo
- the progress infooriginalBaseDirectory
- current project directorypublic void convertPathsToAbsolute()
public void convertPathsToRelative()
public void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportValidity
in class JIPipeAlgorithm
report
- the report to be added topublic void setBaseDirectory(Path baseDirectory)
JIPipeGraphNode
JIPipeGraphNode.BaseDirectoryChangedEvent
that can be received by JIPipeDataSlot
instances to adapt to the work directory.setBaseDirectory
in class JIPipeGraphNode
baseDirectory
- The work directory. Can be nullCopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.