Class ComputationCell

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.ListSelectionListener

    public class ComputationCell
    extends Cell
    implements javax.swing.event.ListSelectionListener, java.awt.event.ActionListener
    • Constructor Summary

      Constructors 
      Constructor Description
      ComputationCell​(org.processmining.contexts.uitopia.UIPluginContext context, org.processmining.framework.plugin.ProMCanceller canceller, Notebook notebook, java.lang.String name, LogType notebookInputLog, java.util.List<LogType> cellOutputLogs)
      Construct a new computation cell with given context, canceller, notebook, name, notebook input log, and output logs of computation cells preceding this cell.
    • Constructor Detail

      • ComputationCell

        public ComputationCell​(org.processmining.contexts.uitopia.UIPluginContext context,
                               org.processmining.framework.plugin.ProMCanceller canceller,
                               Notebook notebook,
                               java.lang.String name,
                               LogType notebookInputLog,
                               java.util.List<LogType> cellOutputLogs)
        Construct a new computation cell with given context, canceller, notebook, name, notebook input log, and output logs of computation cells preceding this cell.
        Parameters:
        context - The given context
        canceller - The given canceller
        notebook - The given notebook
        name - The give name
        notebookInputLog - The input log of the notebook
        cellOutputLogs - The list of output logs of preceding computation cells.
    • Method Detail

      • getFilters

        public java.util.List<Filter> getFilters()
        Gets the list of filters.
        Returns:
        The list of filters.
      • setInputLogs

        public void setInputLogs​(java.util.List<LogType> cellOutputLogs)
        Updates the list of input logs.
        Parameters:
        cellOutputLogs - The new list of preceding output logs
      • updateOutputLog

        public void updateOutputLog()
        Update the output log in the background.
      • setInputLog

        public void setInputLog​(LogType inputLog)
        Sets the input log. Needed when creating from template.
        Parameters:
        inputLog - The input log
      • setLastView

        public void setLastView​(org.deckfour.uitopia.api.model.ViewType view)
        Sets the view. Needed when creating from template.
        Parameters:
        view - The view
      • updateOutputLog

        public void updateOutputLog​(boolean doInBackground)
        Update the output log.
        Parameters:
        doInBackground - Whether to do the update in the background.
      • getWidget

        public javax.swing.JComponent getWidget​(boolean doReset)
        Gets a widget for this cell.
        Specified by:
        getWidget in class Cell
        Parameters:
        doReset - Whether to ignore any old widget.
        Returns:
        A widget for this cell.
      • setMainWidget

        public void setMainWidget​(javax.swing.JComponent component)
        Shows the given component in the main widget.
        Parameters:
        component -
      • valueChanged

        public void valueChanged​(javax.swing.event.ListSelectionEvent e)
        Handles changes.
        Specified by:
        valueChanged in interface javax.swing.event.ListSelectionListener
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • updated

        public void updated()
        To be called when something in this cell has changed.
        Specified by:
        updated in class Cell
      • add

        public void add​(Filter selectedFilter)
        Adds the selected filter to the list of filters.
        Parameters:
        selectedFilter - The selected filter
      • getOutputLog

        public LogType getOutputLog()
        Gets the output log.
        Returns:
        The output log.
      • getInputLog

        public LogType getInputLog()
        Gets the input log.
        Returns:
        The input log.
      • getViews

        public java.util.List<org.deckfour.uitopia.api.model.ViewType> getViews()
        Gets a list of possible views.
        Returns:
        A list of possible views.
      • getVisualization

        public javax.swing.JComponent getVisualization​(org.deckfour.uitopia.api.model.ViewType type)
        Gets a widget for the given view.
        Parameters:
        type - The given view
        Returns:
        TA widget for the given view.
      • exportOutputLog

        public void exportOutputLog()
        Exports output log into the workspace.
      • update

        public void update()
        Updates the cell.
        Specified by:
        update in class Cell
      • getSelectedFilter

        public Filter getSelectedFilter()
        Gets the selected filter.
        Returns:
        The selected filter.
      • setSelectedFilter

        public void setSelectedFilter​(Filter selectedFilter)
        Sets the selected filter to the given filter.
        Parameters:
        selectedFilter - The given filter
      • getSelectedView

        public org.deckfour.uitopia.api.model.ViewType getSelectedView()
        Gets the selected view.
        Returns:
        The selected view
      • setSelectedView

        public void setSelectedView​(org.deckfour.uitopia.api.model.ViewType selectedView)
        Sets the selected view to the given view.
        Parameters:
        selectedView - the given view
      • getSelectedLog

        public LogType getSelectedLog()
        Gets the selected log.
        Returns:
        The selected log
      • setSelectedLog

        public void setSelectedLog​(LogType selectedLog)
        Sets the selected log to the given log.
        Parameters:
        selectedLog - The given log.
      • getTemplate

        public CellTemplate getTemplate()
        Gets a template for the cell.
        Specified by:
        getTemplate in class Cell
        Returns:
        A cell template for this cell