public class JIPipe extends org.scijava.service.AbstractService implements JIPipeService
JIPipeService.DatatypeRegisteredEvent, JIPipeService.DatatypeRegisteredEventEmitter, JIPipeService.DatatypeRegisteredEventListener, JIPipeService.ExtensionContentAddedEvent, JIPipeService.ExtensionContentAddedEventEmitter, JIPipeService.ExtensionContentRemovedEvent, JIPipeService.ExtensionContentRemovedEventEmitter, JIPipeService.ExtensionDiscoveredEvent, JIPipeService.ExtensionDiscoveredEventEmitter, JIPipeService.ExtensionRegisteredEvent, JIPipeService.ExtensionRegisteredEventEmitter, JIPipeService.NodeInfoRegisteredEvent, JIPipeService.NodeInfoRegisteredEventEmitter, JIPipeService.NodeInfoRegisteredEventListener, JIPipeService.PluginContentAddedEventListener, JIPipeService.PluginContentRemovedEventListener, JIPipeService.PluginDiscoveredEventListener, JIPipeService.PluginRegisteredEventListener
Modifier and Type | Field and Description |
---|---|
static boolean |
NO_IMAGEJ
To be used with an alternative start mode not involving ImageJ
|
static boolean |
NO_SETTINGS_AUTOSAVE
Prevent saving settings
|
static Path |
OVERRIDE_USER_DIR_BASE
Allows to override the directory where profiles are located (needs to be done before init!)
|
static JIPipeResourceManager |
RESOURCES
Resource manager for core JIPipe
|
Constructor and Description |
---|
JIPipe() |
getInfo, getPriority, setInfo, setPriority
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generateValidityReport
public static final JIPipeResourceManager RESOURCES
public static boolean NO_IMAGEJ
public static boolean NO_SETTINGS_AUTOSAVE
public static Path OVERRIDE_USER_DIR_BASE
public static <T extends JIPipeData> T importData(JIPipeReadDataStorage storage, Class<T> klass, JIPipeProgressInfo progressInfo)
T
- the data typestorage
- the storage that contains the serialized dataklass
- the data typeprogressInfo
- the progress infopublic static boolean isRestarting()
public static JIPipeParameterTypeRegistry getParameterTypes()
public static JIPipeExpressionRegistry getTableOperations()
public static JIPipeCustomMenuRegistry getCustomMenus()
public static JIPipeImageJAdapterRegistry getImageJAdapters()
public static JIPipeApplicationSettingsRegistry getSettings()
public static JIPipeNodeRegistry getNodes()
public static JIPipeDatatypeRegistry getDataTypes()
public static JIPipeArtifactsRegistry getArtifacts()
public static JIPipeNodeTemplateRegistry getNodeTemplates()
public static JIPipe getInstance()
public static void restartGUI()
public static JIPipe ensureInstance()
ImageJ
instance to obtain a Context
if JIPipe is not initialized already.public static JIPipe ensureInstance(org.scijava.Context context)
context
- the context to initialize JIPipepublic static JIPipe createInstance(org.scijava.Context context)
context
- the contextpublic static JIPipe createLibNoImageJInstance(List<Class<? extends JIPipeJavaPlugin>> plugins)
plugins
- list of plugins to loadpublic static boolean isInstantiated()
public static int comparePlugins(org.scijava.plugin.PluginInfo<?> p0, org.scijava.plugin.PluginInfo<?> p1)
p0
- Pluginp1
- Pluginpublic static JIPipeProject loadProject(Path fileName) throws IOException
fileName
- Project fileIOException
- thrown if the file could not be read or the file is corruptpublic static JIPipeProject loadProject(Path fileName, JIPipeNotificationInbox notifications) throws IOException
fileName
- Project filenotifications
- notifications for the userIOException
- thrown if the file could not be read or the file is corruptpublic static JIPipeProject loadProject(Path fileName, JIPipeValidationReport report, JIPipeNotificationInbox notifications) throws IOException
fileName
- Project filereport
- Report whether the project is validnotifications
- notifications for the userIOException
- thrown if the file could not be read or the file is corruptpublic static JIPipeProject loadProject(Path fileName, JIPipeValidationReport report) throws IOException
fileName
- Project filereport
- Report whether the project is validIOException
- thrown if the file could not be read or the file is corruptpublic static JIPipeGraphRun runProject(JIPipeProject project, Path outputFolder, int threads)
project
- the projectoutputFolder
- the output folderthreads
- the number of threads (set to zero for using the default value)public static JIPipeGraphRun runProject(JIPipeProject project, JIPipeGraphRunConfiguration settings)
project
- the projectsettings
- settings for the runpublic static JIPipeGraphRun enqueueProject(JIPipeProject project, Path outputFolder, int threads)
project
- the projectoutputFolder
- the output folderthreads
- the number of threads (set to zero for using the default value)JIPipeRunnableQueue
to see if the run is finished.public static JIPipeGraphRun enqueueProject(JIPipeProject project, JIPipeGraphRunConfiguration settings)
project
- the projectsettings
- settings for the runJIPipeRunnableQueue
to see if the run is finished.public static <T extends JIPipeGraphNode> T createNode(String id)
T
- Algorithm classid
- Algorithm IDpublic static <T extends JIPipeGraphNode> T createNode(Class<T> klass)
T
- node classklass
- node classpublic static <T extends JIPipeGraphNode> T duplicateNode(T node)
JIPipeGraphNode
T
- the node classnode
- the nodepublic static <T> T duplicateParameter(T value)
T
- the type of the valuevalue
- the value. can be nullpublic static <T extends JIPipeData> T createData(Class<T> klass, Object... constructorParameters)
T
- Data classklass
- The data classconstructorParameters
- Constructor parameterspublic static String getJIPipeVersion()
public static boolean isValidExtensionId(String id)
id
- the IDpublic static Path getJIPipeUserDir()
public static void exitLater(int exitCode)
exitCode
- the exit codepublic JIPipeService.DatatypeRegisteredEventEmitter getDatatypeRegisteredEventEmitter()
getDatatypeRegisteredEventEmitter
in interface JIPipeService
public JIPipeService.ExtensionContentAddedEventEmitter getExtensionContentAddedEventEmitter()
getExtensionContentAddedEventEmitter
in interface JIPipeService
public JIPipeService.ExtensionContentRemovedEventEmitter getExtensionContentRemovedEventEmitter()
getExtensionContentRemovedEventEmitter
in interface JIPipeService
public JIPipeService.ExtensionDiscoveredEventEmitter getExtensionDiscoveredEventEmitter()
getExtensionDiscoveredEventEmitter
in interface JIPipeService
public JIPipeService.ExtensionRegisteredEventEmitter getExtensionRegisteredEventEmitter()
getExtensionRegisteredEventEmitter
in interface JIPipeService
public JIPipeService.NodeInfoRegisteredEventEmitter getNodeInfoRegisteredEventEmitter()
getNodeInfoRegisteredEventEmitter
in interface JIPipeService
public JIPipeExpressionRegistry getTableOperationRegistry()
getTableOperationRegistry
in interface JIPipeService
public JIPipeGraphEditorToolRegistry getGraphEditorToolRegistry()
getGraphEditorToolRegistry
in interface JIPipeService
public JIPipeProjectTemplateRegistry getProjectTemplateRegistry()
getProjectTemplateRegistry
in interface JIPipeService
public JIPipeProgressInfo getProgressInfo()
public List<JIPipeDependency> getFailedExtensions()
public void initializeLibNoImageJ(List<Class<? extends JIPipeJavaPlugin>> plugins)
plugins
- the list of plugins to loadpublic void initialize()
initialize
in interface org.scijava.Initializable
initialize
in interface org.scijava.service.Service
public void initialize(JIPipeExtensionApplicationSettings extensionSettings, JIPipeRegistryIssues issues, boolean verbose)
extensionSettings
- extension settingsissues
- if no windows should be openedverbose
- if all steps should be logged (otherwise the initialization will be silent)public boolean isInitializing()
public void checkUpdateSites(JIPipeRegistryIssues issues, List<JIPipeDependency> extensions, net.imagej.updater.util.Progress progressAdapter, JIPipeProgressInfo progressInfo)
issues
- the resultsextensions
- list of known extensionsprogressAdapter
- the adapter that takes the progressprogressInfo
- the progress infopublic void register(JIPipeJsonPlugin extension, JIPipeProgressInfo progressInfo)
extension
- The extensionprogressInfo
- the progress infopublic JIPipePluginRegistry getPluginRegistry()
getPluginRegistry
in interface JIPipeService
public JIPipeNodeRegistry getNodeRegistry()
getNodeRegistry
in interface JIPipeService
public JIPipeDatatypeRegistry getDatatypeRegistry()
getDatatypeRegistry
in interface JIPipeService
public JIPipeImageJAdapterRegistry getImageJDataAdapterRegistry()
getImageJDataAdapterRegistry
in interface JIPipeService
public List<JIPipeDependency> getRegisteredExtensions()
getRegisteredExtensions
in interface JIPipeService
public JIPipeCustomMenuRegistry getCustomMenuRegistry()
getCustomMenuRegistry
in interface JIPipeService
public JIPipeNodeTemplateRegistry getNodeTemplateRegistry()
getNodeTemplateRegistry
in interface JIPipeService
public Set<String> getRegisteredExtensionIds()
getRegisteredExtensionIds
in interface JIPipeService
public void reportValidity(JIPipeValidationReportContext reportContext, JIPipeValidationReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportContext
- the report contextreport
- the report to be added topublic JIPipeDependency findExtensionById(String dependencyId)
findExtensionById
in interface JIPipeService
public org.scijava.plugin.PluginService getPluginService()
public JIPipeParameterTypeRegistry getParameterTypeRegistry()
getParameterTypeRegistry
in interface JIPipeService
public JIPipeApplicationSettingsRegistry getApplicationSettingsRegistry()
getApplicationSettingsRegistry
in interface JIPipeService
public JIPipeProjectSettingsRegistry getProjectSettingsRegistry()
getProjectSettingsRegistry
in interface JIPipeService
public JIPipeMetadataRegistry getMetadataRegistry()
getMetadataRegistry
in interface JIPipeService
public JIPipeExpressionRegistry getExpressionRegistry()
getExpressionRegistry
in interface JIPipeService
public net.imagej.updater.FilesCollection getImageJPlugins()
public org.scijava.log.LogService getLogService()
public JIPipeExternalEnvironmentRegistry getExternalEnvironmentRegistry()
getExternalEnvironmentRegistry
in interface JIPipeService
public JIPipeUtilityRegistry getUtilityRegistry()
getUtilityRegistry
in interface JIPipeService
public JIPipeArtifactsRegistry getArtifactsRegistry()
getArtifactsRegistry
in interface JIPipeService
public JIPipeRecentProjectsRegistry getRecentProjectsRegistry()
getRecentProjectsRegistry
in interface JIPipeService
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.