public class AppPSimuConfigurationProperties extends Object
| Constructor and Description |
|---|
AppPSimuConfigurationProperties(Properties prop)
Constructor with loaded properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createPaths()
Create configured path
|
String |
getAdditionalPatriusFolder()
ADDITIONAL_PATRIUS_DATA property
|
String |
getDataDir()
PSIMU_DATA_DIR property
|
static AppPSimuConfigurationProperties |
getInstance()
Get the singleton instance.
|
String |
getOutputDir()
PSIMU_OUTPUT_DIR property
|
String |
getTempDir()
PSIMU_TEMP_DIR property
|
static void |
iniPatriusDataset(String patriusDataFolderName)
Method to initialize PATRIUS DATA SET taking into account additional data
before the nominal set included inside the jar
|
boolean |
load(String path)
Load a property file
|
static void |
loadProperties(String name,
Properties prop)
Method to load a property file from a jar (beginning by "/") or locally.
|
public static final String STR_SLASH
public AppPSimuConfigurationProperties(Properties prop) throws IOException
prop - OperaApp propertiesIOException - I/O exceptionpublic static AppPSimuConfigurationProperties getInstance()
public String getOutputDir()
public String getDataDir()
public String getAdditionalPatriusFolder()
public String getTempDir()
public boolean load(String path)
path - the filepath to load as propertiespublic static void loadProperties(String name, Properties prop) throws FileNotFoundException, IOException
name - name of the property fileprop - property to loadFileNotFoundException - File not found ...IOException - Problem when reading the filepublic final void createPaths()
throws IOException
IOException - I/O exceptionpublic static void iniPatriusDataset(String patriusDataFolderName)
patriusDataFolderName - name of the main directory wherer additional data are.Copyright © 2022. All rights reserved.