public abstract class PythonPackageLibraryEnvironment extends JIPipeEnvironment
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 reportContext,
JIPipeValidationReport report)
Generates a validity report
|
void |
setLibraryDirectory(Path libraryDirectory) |
void |
setProvidedByEnvironment(boolean providedByEnvironment) |
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
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 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–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.