Class ResultsWindow

All Implemented Interfaces:
ResultsConstants, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ResultsWindow extends JMTFrame implements ResultsConstants

Title: Results Window

Description: Window to show simulation results.

Author:
Bertoli Marco Date: 22-set-2005 Time: 15.10.52 Modified by Ashanka (Nov 09): Desc: Added the description of the Drop Rate Modified by Ashanka (Nov 09): Desc: Appended the values of various measures to the tool tip. Modified by Ashanka (May 2010): Patch: Multi-Sink Perf. Index Description: Added new Performance index for capturing 1. global response time (ResponseTime per Sink) 2. global throughput (Throughput per Sink) each sink per class.
See Also:
  • Constructor Details

    • ResultsWindow

      public ResultsWindow(SimulationDefinition sd, String fileName)
      Creates a new ResultsWindow
      Parameters:
      sd - simulation definition data structure
      fileName - name of simulation file
    • ResultsWindow

      public ResultsWindow(SimulationDefinition sd, AbortMeasure abort, String fileName)
      Creates a new ResultsWindow
      Parameters:
      sd - simulation definition data structure
      abort - object used to implement abort button action
      fileName - name of simulation file
  • Method Details

    • addButtonActions

      public void addButtonActions(AbstractAction startAction, AbstractAction pauseAction, AbstractAction stopAction)
      Sets action for toolbar buttons and displays them
      Parameters:
      startAction - action associated with start simulation button
      pauseAction - action associated with pause simulation button
      stopAction - action associated with stop simulation button
    • doubleToString

      protected static String doubleToString(double d)
      Helper method used to convert a double into a String avoiding too many decimals
      Parameters:
      d - number to be converted
      Returns:
      string representation of input number
    • updateTitle

      public void updateTitle(String filename)
      Updates this window title adding the file name
      Parameters:
      filename - the file name or null to remove it.