Class JMVAWizard

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

public class JMVAWizard extends Wizard implements JMVAController
This is the object you use to define your system structure and parameters
Version:
Date: 11-set-2003 Time: 14.47.11 Modified by Bertoli Marco 01-mar-2006 (added model conversion and solved bug with stored visits) Modified by Kourosh OCT2013 to add New panels such as ReferenceStation and SystemResponseTime Also there is a modification to show the initial page, now at the beginning we see visits and service times and if the user press on Service Demand we have a warning message which shows that by pressing this button visits are set to 1.
Author:
alyf (Andrea Conti)
See Also:
  • Constructor Details

    • JMVAWizard

      public JMVAWizard()
    • JMVAWizard

      public JMVAWizard(String filename)
    • JMVAWizard

      public JMVAWizard(ExactModel data)
  • Method Details

    • makeToolbar

      protected JMTToolBar makeToolbar()
      Returns:
      the toolbar for the exact wizard. Shamelessly uses icon from the main jmt frame
    • makeButtons

      protected JComponent makeButtons()
      Overrides:
      makeButtons in class Wizard
      Returns:
      the button panel
    • checkForSave

      public boolean checkForSave(String msg)
      Shows a confirmation dialog to save before new model or exit operations
      Parameters:
      msg - The message to display.
      Returns:
      true - if the user select cancel button.
    • getData

      public ExactModel getData()
      Specified by:
      getData in interface JMVAController
    • finish

      protected void finish()
      Description copied from class: Wizard
      Called when the "Finish" button is pressed. Must be overridden in subclasses!
      Overrides:
      finish in class Wizard
    • cancel

      protected boolean cancel()
      Description copied from class: Wizard
      Called when the "Cancel" button is pressed. Should be overridden in subclasses
      Overrides:
      cancel in class Wizard
      Returns:
      true if window can be closed, false otherwise.
    • switchToSimulator

      protected void switchToSimulator()
    • getHelp

      public HoverHelp getHelp()
      Specified by:
      getHelp in interface JMVAController
    • switchFromSTVtoSD

      public void switchFromSTVtoSD()
      switches service times and visits panels to service demands panel in order to change data representation.
      Specified by:
      switchFromSTVtoSD in interface JMVAController
    • switchFromSDtoSTV

      public void switchFromSDtoSTV()
      switches service times and visits panels to service demands panel in order to change data representation.
      Specified by:
      switchFromSDtoSTV in interface JMVAController
    • updateActions

      protected void updateActions()
      Description copied from class: Wizard
      enables/disables buttons according to current status
      Overrides:
      updateActions in class Wizard
    • main

      public static void main(String[] args)
    • updateTitle

      public void updateTitle(String filename)
      Sets the file name to be shown in the title
      Parameters:
      filename - the file name or null to remove it
    • updateAlgoPanel

      public void updateAlgoPanel(Boolean isClosed, Boolean isOpen, Boolean isAlgowhatif, Boolean isLoadDependent, Boolean isPriority)
      Updates the algo panel
      Specified by:
      updateAlgoPanel in interface JMVAController
      Parameters:
      isClosed - true if model is closed, false if not, null to read from data structure
      isOpen - true if model is open, false if not, null to read from data structure
      isAlgowhatif - true if whatif on algorithm was selected, false if not, null to read from data structure
      isLoadDependent - if model is load dependent or not. null to read from data structure
      isPriority - if model is priority or not. null to read from data structure