public class JIPipe extends AbstractService implements JIPipeService
JIPipeService.DatatypeRegisteredEvent, JIPipeService.DatatypeRegisteredEventEmitter, JIPipeService.DatatypeRegisteredEventListener, JIPipeService.ExtensionContentAddedEvent, JIPipeService.ExtensionContentAddedEventEmitter, JIPipeService.ExtensionContentAddedEventListener, JIPipeService.ExtensionContentRemovedEvent, JIPipeService.ExtensionContentRemovedEventEmitter, JIPipeService.ExtensionContentRemovedEventListener, JIPipeService.ExtensionDiscoveredEvent, JIPipeService.ExtensionDiscoveredEventEmitter, JIPipeService.ExtensionDiscoveredEventListener, JIPipeService.ExtensionRegisteredEvent, JIPipeService.ExtensionRegisteredEventEmitter, JIPipeService.ExtensionRegisteredEventListener, JIPipeService.NodeInfoRegisteredEvent, JIPipeService.NodeInfoRegisteredEventEmitter, JIPipeService.NodeInfoRegisteredEventListener
Modifier and Type | Field and Description |
---|---|
static JIPipeResourceManager |
RESOURCES
Resource manager for core JIPipe
|
Constructor and Description |
---|
JIPipe() |
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
generateValidityReport
public static final JIPipeResourceManager RESOURCES
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 JIPipeSettingsRegistry getSettings()
public static JIPipeNodeRegistry getNodes()
public static JIPipeDatatypeRegistry getDataTypes()
public NodeTemplatesRefreshedEventEmitter getNodeTemplatesRefreshedEventEmitter()
public 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 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(Context context)
context
- the context to initialize JIPipepublic static JIPipe createInstance(Context context)
context
- the contextpublic static boolean isInstantiated()
public static int comparePlugins(PluginInfo<?> p0, 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, JIPipeIssueReport 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, JIPipeIssueReport 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 JIPipeProjectRun 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 JIPipeProjectRun runProject(JIPipeProject project, JIPipeRunSettings settings)
project
- the projectsettings
- settings for the runpublic static JIPipeProjectRun 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)JIPipeRunnerQueue
to see if the run is finished.public static JIPipeProjectRun enqueueProject(JIPipeProject project, JIPipeRunSettings settings)
project
- the projectsettings
- settings for the runJIPipeRunnerQueue
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 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 initialize()
initialize
in interface Initializable
initialize
in interface Service
public void initialize(ExtensionSettings extensionSettings, JIPipeRegistryIssues issues)
extensionSettings
- extension settingsissues
- if no windows should be openedpublic boolean isInitializing()
public void checkUpdateSites(JIPipeRegistryIssues issues, List<JIPipeDependency> extensions, Progress progressAdapter, JIPipeProgressInfo progressInfo)
issues
- the resultsextensions
- list of known extensionsprogressAdapter
- the adapter that takes the progressprogressInfo
- the progress infopublic void register(JIPipeJsonExtension extension, JIPipeProgressInfo progressInfo)
extension
- The extensionprogressInfo
- the progress infopublic JIPipeExtensionRegistry getExtensionRegistry()
getExtensionRegistry
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 Set<String> getRegisteredExtensionIds()
getRegisteredExtensionIds
in interface JIPipeService
public void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
report
- the report to be added topublic JIPipeDependency findExtensionById(String dependencyId)
findExtensionById
in interface JIPipeService
public PluginService getPluginService()
public JIPipeParameterTypeRegistry getParameterTypeRegistry()
getParameterTypeRegistry
in interface JIPipeService
public JIPipeSettingsRegistry getSettingsRegistry()
getSettingsRegistry
in interface JIPipeService
public JIPipeExpressionRegistry getExpressionRegistry()
getExpressionRegistry
in interface JIPipeService
public FilesCollection getImageJPlugins()
public LogService getLogService()
public JIPipeExternalEnvironmentRegistry getExternalEnvironmentRegistry()
getExternalEnvironmentRegistry
in interface JIPipeService
public JIPipeUtilityRegistry getUtilityRegistry()
getUtilityRegistry
in interface JIPipeService
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.