public abstract class PythonPackageLibraryEnvironmentInstaller<T extends PythonPackageLibraryEnvironment> extends ExternalEnvironmentInstaller
PythonPackageLibraryEnvironment
that will just delete any existing directories and re-install the library.Modifier and Type | Class and Description |
---|---|
static class |
PythonPackageLibraryEnvironmentInstaller.Configuration |
Constructor and Description |
---|
PythonPackageLibraryEnvironmentInstaller(JIPipeWorkbench workbench,
JIPipeParameterAccess parameterAccess) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
configure()
UI configuration
|
protected abstract T |
createEnvironment() |
PythonPackageLibraryEnvironmentInstaller.Configuration |
getConfiguration() |
protected abstract String |
getEnvironmentName() |
ExternalEnvironment |
getInstalledEnvironment()
Returns the final environment after installation
|
JIPipeProgressInfo |
getProgressInfo()
The info object that allows communication with the run
|
String |
getTaskLabel()
A name for the runnable
|
void |
run() |
void |
setConfiguration(PythonPackageLibraryEnvironmentInstaller.Configuration configuration) |
void |
setProgressInfo(JIPipeProgressInfo progressInfo)
Sets the progress info of this runnable
|
getParameterAccess, getWorkbench
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFinished, onInterrupted, onProgress, onStarted
public PythonPackageLibraryEnvironmentInstaller(JIPipeWorkbench workbench, JIPipeParameterAccess parameterAccess)
workbench
- the workbenchparameterAccess
- the parameter access that will receive the generated environmentprotected abstract T createEnvironment()
protected abstract String getEnvironmentName()
public JIPipeProgressInfo getProgressInfo()
JIPipeRunnable
public void setProgressInfo(JIPipeProgressInfo progressInfo)
JIPipeRunnable
progressInfo
- the info objectpublic String getTaskLabel()
JIPipeRunnable
public ExternalEnvironment getInstalledEnvironment()
ExternalEnvironmentInstaller
getInstalledEnvironment
in class ExternalEnvironmentInstaller
public void run()
protected boolean configure()
public PythonPackageLibraryEnvironmentInstaller.Configuration getConfiguration()
public void setConfiguration(PythonPackageLibraryEnvironmentInstaller.Configuration configuration)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.