Package repast.simphony.ui.newscenario
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 Summary
Constructors Constructor Description NewScenarioWizard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createScenario()
Creates the scenario.void
display(Component comp)
Displays the scenario creation wizard relative to the specified component.File
getScenarioPath()
Gets the path to the scenario directory.boolean
wasCanceled()
Returns true if the wizard was canceled, otherwise false.
-
-
-
Method Detail
-
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
-
-
-