Package repast.simphony.scenario
Class ScenarioUtils
java.lang.Object
repast.simphony.scenario.ScenarioUtils
Provides access to the scenario directory.
- Author:
- Eric Tatara
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
static String
makeRelativePathToProject
(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 void
setScenarioDir
(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
-