public class Settings
extends usf.saav.common.BasicObject
| Modifier and Type | Class and Description |
|---|---|
class |
Settings.SettingsDouble
The Class SettingsDouble.
|
class |
Settings.SettingsInt
The Class SettingsInt.
|
| Constructor and Description |
|---|
Settings(java.lang.String filename)
Instantiates a new settings.
|
| Modifier and Type | Method and Description |
|---|---|
Settings.SettingsDouble |
initDouble(java.lang.String name,
double default_value)
Generate a new double variable.
|
Settings.SettingsInt |
initInteger(java.lang.String name,
int default_value)
Generate a new integer variable.
|
public Settings(java.lang.String filename)
throws org.json.JSONException,
java.io.IOException
filename - the filenameorg.json.JSONException - the JSON exceptionjava.io.IOException - Signals that an I/O exception has occurred.public Settings.SettingsInt initInteger(java.lang.String name, int default_value)
name - Label of the variabledefault_value - Default value, if the variable doesn't exist alreadypublic Settings.SettingsDouble initDouble(java.lang.String name, double default_value)
name - Label of the variabledefault_value - Default value, if the variable doesn't exist already