Class NESTWorkflowVisualizerFactory

  • All Implemented Interfaces:
    Factory

    public class NESTWorkflowVisualizerFactory
    extends Object
    implements Factory
    • Constructor Detail

      • NESTWorkflowVisualizerFactory

        public NESTWorkflowVisualizerFactory()
    • Method Detail

      • getDefaultVisualizer

        public static NESTWorkflowVisualizerImpl getDefaultVisualizer​(NESTWorkflowObject graph)
        The first visualizer in the list is always the default modifier.
        Parameters:
        graph - the NESTGraphObject to attach
        Returns:
        the desired visualizer, or null, if no visualizer is registered
      • getVisualizer

        public static NESTWorkflowVisualizerImpl getVisualizer​(NESTWorkflowObject graph,
                                                               Class clazz)
        Returns a visualizer that is attached to the given NESTGraphObject and has the given identifier.
        Parameters:
        graph - the NESTGraphObject to attach
        clazz - the class of the visualizer
        Returns:
        the desired modifier, or null, if the identifier doesn't match any of the loaded modifiers
      • reset

        public void reset()
        Description copied from interface: Factory
        This method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables.
        Specified by:
        reset in interface Factory
      • bind

        public boolean bind​(Object implementation)
        Description copied from interface: Factory
        Bind an implementation to the factory.
        Specified by:
        bind in interface Factory
        Parameters:
        implementation - The object to bind.
        Returns:
        true if the factory accept the implementation, otherwise false .
      • unbind

        public boolean unbind​(Object implementation)
        Description copied from interface: Factory
        Unbinds an implementation from the factory.
        Specified by:
        unbind in interface Factory
        Parameters:
        implementation - The object to unbind.
        Returns:
        true if the factory accept the implementation, otherwise false .