public abstract class PythonPackageLibraryEnvironment extends JIPipeArtifactEnvironment
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterChangedEventEmitter, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEventEmitter, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEvent, JIPipeParameterCollection.ParameterUIChangedEventEmitter, JIPipeParameterCollection.ParameterUIChangedEventListener
Constructor and Description |
---|
PythonPackageLibraryEnvironment() |
PythonPackageLibraryEnvironment(PythonPackageLibraryEnvironment other) |
Modifier and Type | Method and Description |
---|---|
void |
generateCode(StringBuilder code,
JIPipeProgressInfo progressInfo)
Installs the library if needed
|
Path |
getAbsoluteLibraryDirectory() |
Icon |
getIcon()
Returns the icon displayed in the UI for the current status
|
String |
getInfo()
Returns more detailed information (e.g., the executed script environment path).
|
Path |
getLibraryDirectory() |
boolean |
isParameterUIVisible(JIPipeParameterTree tree,
JIPipeParameterAccess access)
Allows to override the visibility of parameters inside the UI
|
boolean |
isProvidedByEnvironment() |
void |
reportValidity(JIPipeValidationReportContext reportContext,
JIPipeValidationReport report)
Generates a validity report
|
void |
setLibraryDirectory(Path libraryDirectory) |
void |
setProvidedByEnvironment(boolean providedByEnvironment) |
applyConfigurationFromArtifact, applyConfigurationFromArtifactAndSetLastArtifact, getArtifactQuery, getLastConfiguredArtifact, isLoadFromArtifact, setArtifactQuery, setLastConfiguredArtifact, setLoadFromArtifact
getName, getSource, getVersion, setName, setSource, setVersion
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, onParameterChanged, onParameterStructureChanged, onParameterUIChanged, registerSubParameter, registerSubParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateValidityReport
deserializeFromJsonNode, emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, isParameterUIVisible, serializeToJsonFile, serializeToJsonGenerator, serializeToJsonString, setParameter
public PythonPackageLibraryEnvironment()
public PythonPackageLibraryEnvironment(PythonPackageLibraryEnvironment other)
public Path getLibraryDirectory()
public void setLibraryDirectory(Path libraryDirectory)
public boolean isProvidedByEnvironment()
public void setProvidedByEnvironment(boolean providedByEnvironment)
public boolean isParameterUIVisible(JIPipeParameterTree tree, JIPipeParameterAccess access)
JIPipeParameterCollection
isParameterUIVisible
in interface JIPipeParameterCollection
isParameterUIVisible
in class JIPipeArtifactEnvironment
tree
- the parameter tree that is used to access this parameteraccess
- the parameterpublic void reportValidity(JIPipeValidationReportContext reportContext, JIPipeValidationReport report)
JIPipeValidatable
reportContext
- the report contextreport
- the report to be added topublic Path getAbsoluteLibraryDirectory()
public Icon getIcon()
JIPipeEnvironment
getIcon
in class JIPipeEnvironment
public String getInfo()
JIPipeEnvironment
getInfo
in class JIPipeEnvironment
public void generateCode(StringBuilder code, JIPipeProgressInfo progressInfo)
code
- the current Python codeCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.