Class NewScenarioWizard

java.lang.Object
repast.simphony.ui.newscenario.NewScenarioWizard

public class NewScenarioWizard extends Object
Wizard for creating a scenario file. The user selects a modelspec.xml and a scenario directory. The modelspec is then copied into this scenario directory.
Version:
$Revision$ $Date$
Author:
Nick Collier
  • Constructor Details

    • NewScenarioWizard

      public NewScenarioWizard()
  • Method Details

    • getScenarioPath

      public File getScenarioPath()
      Gets the path to the scenario directory.
      Returns:
      the path to the scenario directory.
    • createScenario

      public void createScenario() throws Exception, org.apache.velocity.exception.ParseErrorException
      Creates the scenario.
      Throws:
      IOException - if an error was encountered during scenario creation.
      Exception
      org.apache.velocity.exception.ParseErrorException
    • wasCanceled

      public boolean wasCanceled()
      Returns true if the wizard was canceled, otherwise false.
      Returns:
      true if the wizard was canceled, otherwise false.
    • display

      public void display(Component comp)
      Displays the scenario creation wizard relative to the specified component.
      Parameters:
      comp -