public abstract class PythonPackageLibraryEnvironment extends JIPipeExternalEnvironment
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 |
isProvidedByEnvironment() |
void |
reportValidity(JIPipeValidationReportContext context,
JIPipeValidationReport report)
Generates a validity report
|
void |
setLibraryDirectory(Path libraryDirectory) |
void |
setProvidedByEnvironment(boolean providedByEnvironment) |
getName, getSource, getVersion, setName, setSource, setVersion
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateValidityReport
emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, isParameterUIVisible, isParameterUIVisible, setParameter
public PythonPackageLibraryEnvironment()
public PythonPackageLibraryEnvironment(PythonPackageLibraryEnvironment other)
public Path getLibraryDirectory()
public void setLibraryDirectory(Path libraryDirectory)
public boolean isProvidedByEnvironment()
public void setProvidedByEnvironment(boolean providedByEnvironment)
public void reportValidity(JIPipeValidationReportContext context, JIPipeValidationReport report)
JIPipeValidatable
report
- the report to be added topublic Path getAbsoluteLibraryDirectory()
public Icon getIcon()
JIPipeExternalEnvironment
getIcon
in class JIPipeExternalEnvironment
public String getInfo()
JIPipeExternalEnvironment
getInfo
in class JIPipeExternalEnvironment
public void generateCode(StringBuilder code, JIPipeProgressInfo progressInfo)
code
- the current Python codeCopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.