Class 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
    • Field Summary

      • Fields inherited from class org.processmining.framework.plugin.impl.AbstractPluginContext

        progress
    • 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>
      T
      addConnection​(T c)
      Registers the given connection in the global context.
      org.processmining.framework.connections.ConnectionManager getConnectionManager()
      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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DummyUIPluginContext

        public DummyUIPluginContext​(org.processmining.framework.plugin.GlobalContext context,
                                    java.lang.String label)
    • Method Detail

      • addConnection

        public <T extends org.processmining.framework.connections.Connection> T addConnection​(T c)
        Description copied from interface: org.processmining.framework.plugin.PluginContext
        Registers the given connection in the global context. The implementation is addConnection(this,c);
        Specified by:
        addConnection in interface org.processmining.framework.plugin.PluginContext
        Overrides:
        addConnection in class org.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.ConnectionCannotBeObtained
        Description copied from interface: org.processmining.framework.plugin.ObjectConstructor
        Finds 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:
        tryToFindOrConstructAllObjects in interface org.processmining.framework.plugin.ObjectConstructor
        Overrides:
        tryToFindOrConstructAllObjects in class org.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.GlobalContext
        Returns the connection manager. The connection manager can be used to query for connections which are registered in ProM.
        Specified by:
        getConnectionManager in interface org.processmining.framework.plugin.GlobalContext
        Overrides:
        getConnectionManager in class org.processmining.framework.plugin.impl.AbstractPluginContext
        Returns:
        the connection manager