public class FolderDataSource extends JIPipeAlgorithm
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
Constructor and Description |
---|
FolderDataSource(FolderDataSource other)
Copies the algorithm
|
FolderDataSource(JIPipeNodeInfo info)
Initializes 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.
|
Path |
getAbsoluteFolderPath() |
Path |
getFolderPath() |
boolean |
isNeedsToExist() |
void |
reportValidity(JIPipeValidationReportContext reportContext,
JIPipeValidationReport report)
Generates a validity report
|
void |
run(JIPipeGraphNodeRunContext runContext,
JIPipeProgressInfo progressInfo)
Runs the workload
|
void |
setBaseDirectory(Path baseDirectory)
Sets the current work directory of this algorithm.
|
void |
setFolderPath(Path folderPath)
Sets the folder path
|
void |
setNeedsToExist(boolean needsToExist) |
canAutoPassThrough, canPassThrough, functionallyEquals, getDefaultCustomExpressionVariables, getRuntimePartition, isEnabled, isEnableDefaultCustomExpressionVariables, isParameterUIVisible, isParameterUIVisible, isPassThrough, isPostprocessor, isPreprocessor, isSkipped, loadExample, onDeserialized, runPassThrough, setEnabled, setPassThrough, setRuntimePartition, setSkipped
canUserDelete, clearLocations, clearSlotData, copySlotConfiguration, createUIInputSlotIconDescriptionMenuItems, duplicate, emitNodeSlotsChangedEvent, fromJson, getAliasIdInParentGraph, getBaseDirectory, getBaseDirectoryChangedEventEmitter, getCategory, getCompartmentDisplayName, getCompartmentUUIDInGraphAsString, getCompartmentUUIDInParentGraph, getCustomDescription, getCustomName, getDataInputSlots, getDependencies, getDisplayName, getEnvironmentDependencies, getFirstInputSlot, 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, getUIInputSlotIcon, getUIInputSlotIconBaseDimensions, getUUIDInParentGraph, hasInputSlot, hasOutputSlot, isBookmarked, isUiLocked, isVisibleIn, onParameterChanged, onSlotConfigurationChanged, renderInputSlots, renderOutputSlots, 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 FolderDataSource(JIPipeNodeInfo info)
info
- Algorithm infopublic FolderDataSource(FolderDataSource other)
other
- The originalpublic void run(JIPipeGraphNodeRunContext runContext, JIPipeProgressInfo progressInfo)
JIPipeGraphNode
run
in class JIPipeAlgorithm
runContext
- the context of the run processprogressInfo
- progress passed from the runnerpublic Path getFolderPath()
public void setFolderPath(Path folderPath)
folderPath
- The folder pathpublic boolean isNeedsToExist()
public void setNeedsToExist(boolean needsToExist)
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 Path getAbsoluteFolderPath()
public void reportValidity(JIPipeValidationReportContext reportContext, JIPipeValidationReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportValidity
in class JIPipeAlgorithm
reportContext
- the report contextreport
- 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–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.