Class DummyUIPluginContext
- java.lang.Object
-
- org.processmining.framework.plugin.impl.AbstractPluginContext
-
- org.processmining.contexts.uitopia.UIPluginContext
-
- org.processmining.contexts.uitopia.DummyUIPluginContext
-
- All Implemented Interfaces:
org.processmining.framework.plugin.GlobalContext,org.processmining.framework.plugin.ObjectConstructor,org.processmining.framework.plugin.PluginContext
public class DummyUIPluginContext extends org.processmining.contexts.uitopia.UIPluginContext
-
-
Constructor Summary
Constructors Constructor Description DummyUIPluginContext(org.processmining.framework.plugin.GlobalContext context, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.processmining.framework.connections.Connection>
TaddConnection(T c)Registers the given connection in the global context.org.processmining.framework.connections.ConnectionManagergetConnectionManager()Returns the connection manager.<T,C extends org.processmining.framework.connections.Connection>
java.util.Collection<T>tryToFindOrConstructAllObjects(java.lang.Class<T> type, java.lang.Class<C> connectionType, java.lang.String role, java.lang.Object... input)Finds as many objects of the given type as can be found through the connections of the other given type.-
Methods inherited from class org.processmining.contexts.uitopia.UIPluginContext
createChildContext, createTypedChildContext, getExecutor, getGlobalContext, getProgress, getRootContext, getTask, openFile, openFiles, saveFile, setTask, showConfiguration, showWizard
-
Methods inherited from class org.processmining.framework.plugin.impl.AbstractPluginContext
clear, createNewPluginContextID, deleteChild, equals, getChildContexts, getFutureResult, getID, getLabel, getLoggingListeners, getParentContext, getPluginContextType, getPluginDescriptor, getPluginLifeCycleEventListeners, getPluginManager, getProgressEventListeners, getProvidedObjectManager, getResult, hasPluginDescriptorInPath, invokeBinding, invokePlugin, isDistantChildOf, log, log, log, setFuture, setPluginDescriptor, toString, tryToFindOrConstructFirstNamedObject, tryToFindOrConstructFirstObject
-
-
-
-
Method Detail
-
addConnection
public <T extends org.processmining.framework.connections.Connection> T addConnection(T c)
Description copied from interface:org.processmining.framework.plugin.PluginContextRegisters the given connection in the global context. The implementation is addConnection(this,c);- Specified by:
addConnectionin interfaceorg.processmining.framework.plugin.PluginContext- Overrides:
addConnectionin classorg.processmining.framework.plugin.impl.AbstractPluginContext
-
tryToFindOrConstructAllObjects
public <T,C extends org.processmining.framework.connections.Connection> java.util.Collection<T> tryToFindOrConstructAllObjects(java.lang.Class<T> type, java.lang.Class<C> connectionType, java.lang.String role, java.lang.Object... input) throws org.processmining.framework.connections.ConnectionCannotBeObtainedDescription copied from interface:org.processmining.framework.plugin.ObjectConstructorFinds as many objects of the given type as can be found through the connections of the other given type. If no objects can be found, it constructs as many objects of the given type as there are plugins available to the framework to do so. These plugins should be able to execute in a child of the given context and accept, in any order, exactly the input provided. Any other objects returned by the plugin, not being the requested type are added to the provided objects of the framework. Also, listeners are notified where applicable. If no plugings exist, or if these plugins fail, a ConnectionDoesntExistException is thrown.- Specified by:
tryToFindOrConstructAllObjectsin interfaceorg.processmining.framework.plugin.ObjectConstructor- Overrides:
tryToFindOrConstructAllObjectsin classorg.processmining.framework.plugin.impl.AbstractPluginContext- Type Parameters:
T- The type of the return object required.- Parameters:
type- the type of the return object required.connectionType- the type of the connections to use when trying to find the objects.role- the assumed role of the object in the connection. Given a connection, the object can be retrieved through the role.input- the input on which the plugin should work- Returns:
- a collection of objects as found or returned by the plugins.
- Throws:
org.processmining.framework.connections.ConnectionCannotBeObtained
-
getConnectionManager
public org.processmining.framework.connections.ConnectionManager getConnectionManager()
Description copied from interface:org.processmining.framework.plugin.GlobalContextReturns the connection manager. The connection manager can be used to query for connections which are registered in ProM.- Specified by:
getConnectionManagerin interfaceorg.processmining.framework.plugin.GlobalContext- Overrides:
getConnectionManagerin classorg.processmining.framework.plugin.impl.AbstractPluginContext- Returns:
- the connection manager
-
-