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 Summary
Modifier and TypeMethodDescriptionvoidchangeSimActionsState(boolean start, boolean pause, boolean stop) Changes simulation action status.voidShows a panel with caught exceptionbooleanUsed to discover if the instance can display simulation animationvoidsetAnimationHolder(Thread thread) voidsetResultsWindow(JFrame rsw) Sets resultWindow to be shown.voidshowErrorMessage(String message) Shows a panel with an error messagevoidshowRelatedPanel(int problemType, int problemSubType, Object relatedStation, Object relatedCLass) Shows the panel to solve a problemvoidShows results window.voidUsed only for the AnimationPanel to update the table
-
Method Details
-
showErrorMessage
Shows a panel with an error message- Parameters:
message- specified error message
-
handleException
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 actionpause- state for pause actionstop- state for stop action
-
setResultsWindow
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
-
setAnimationHolder
-
getFileName
String getFileName() -
simulationFinished
void simulationFinished()Used only for the AnimationPanel to update the table
-