Package repast.simphony.ui.newscenario
Class NewScenarioWizard
java.lang.Object
repast.simphony.ui.newscenario.NewScenarioWizard
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates the scenario.voidDisplays the scenario creation wizard relative to the specified component.Gets the path to the scenario directory.booleanReturns true if the wizard was canceled, otherwise false.
-
Constructor Details
-
NewScenarioWizard
public NewScenarioWizard()
-
-
Method Details
-
getScenarioPath
Gets the path to the scenario directory.- Returns:
- the path to the scenario directory.
-
createScenario
Creates the scenario.- Throws:
IOException- if an error was encountered during scenario creation.Exceptionorg.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
Displays the scenario creation wizard relative to the specified component.- Parameters:
comp-
-