Package repast.simphony.scenario
Class ScenarioUtils
java.lang.Object
repast.simphony.scenario.ScenarioUtils
Provides access to the scenario directory.
- Author:
- Eric Tatara
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Filestatic StringmakeRelativePathToProject(String filePath) Checks if the selected path contains the project root and if so, remove the project root from the path, making it a relative path using UNIX style forward slash file separators.static voidsetScenarioDir(File dir)
-
Constructor Details
-
ScenarioUtils
public ScenarioUtils()
-
-
Method Details
-
getScenarioDir
-
setScenarioDir
-
makeRelativePathToProject
Checks if the selected path contains the project root and if so, remove the project root from the path, making it a relative path using UNIX style forward slash file separators.- Parameters:
fileName- the full path to the file- Returns:
- the relative path to the project root
-