Package repast.simphony.scenario
Class ScenarioUtils
- java.lang.Object
-
- repast.simphony.scenario.ScenarioUtils
-
public class ScenarioUtils extends Object
Provides access to the scenario directory.- Author:
- Eric Tatara
-
-
Constructor Summary
Constructors Constructor Description ScenarioUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static File
getScenarioDir()
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)
-
-
-
Method Detail
-
getScenarioDir
public static File getScenarioDir()
-
setScenarioDir
public static void setScenarioDir(File dir)
-
makeRelativePathToProject
public 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.- Parameters:
fileName
- the full path to the file- Returns:
- the relative path to the project root
-
-