Interface GuiInterface

All Known Implementing Classes:
AnimationPanel, JSIMWizMain, Mediator

public interface GuiInterface

Title: Gui Interface

Description: This interface provides a pool of methods common to Mediator and JSIMMain to provide a layer of compatibility used by PollerThread.

Author:
Bertoli Marco Date: 7-ott-2005 Time: 11.12.07
  • Method Details

    • showErrorMessage

      void showErrorMessage(String message)
      Shows a panel with an error message
      Parameters:
      message - specified error message
    • handleException

      void handleException(Exception e)
      Shows a panel with caught exception
      Parameters:
      e - exception to be shown
    • changeSimActionsState

      void changeSimActionsState(boolean start, boolean pause, boolean stop)
      Changes simulation action status. This method is called by DispatcherThread.
      Parameters:
      start - state for start action
      pause - state for pause action
      stop - state for stop action
    • setResultsWindow

      void setResultsWindow(JFrame rsw)
      Sets resultWindow to be shown. This method is used by pollerThread.
      Parameters:
      rsw - window to be set as current ResultsWindow
    • showResultsWindow

      void showResultsWindow()
      Shows results window. This method is used by pollerThread.
    • isAnimationDisplayable

      boolean isAnimationDisplayable()
      Used to discover if the instance can display simulation animation
      Returns:
      true if the instance can display simulation animation
    • showRelatedPanel

      void showRelatedPanel(int problemType, int problemSubType, Object relatedStation, Object relatedCLass)
      Shows the panel to solve a problem
    • setAnimationHolder

      void setAnimationHolder(Thread thread)
    • getFileName

      String getFileName()
    • simulationFinished

      void simulationFinished()
      Used only for the AnimationPanel to update the table