JaRMoS
1.1
Java Reduced Model Simulations
|
Class that contains miscellaneous JaRMoS specific constants and static functions. More...
Static Public Member Functions | |
static AModelManager | getModelManager (Context c, Intent i) throws ModelManagerException |
Returns a model manager instance for the current intent. More... | |
Static Public Attributes | |
static final String | DEX_CLASSES_JARFILE = "dexclasses.jar" |
The file name within a model directory that contains any runtime-loadable classes. More... | |
static String | APP_DATA_DIRECTORY = null |
The directory where the application may write data to and read from. More... | |
static final String | EXTRA_MODELMANAGER_CLASSNAME = "amodelmanager_classname" |
The string describing the class name which denotes the corret AModelManager subclass to be instantiated upon creation. More... | |
static final String | EXTRA_MODELMANAGER_MODELDIR = "amodelmanager_modeldir" |
The string extra in intents to tell which model directory is currently used. More... | |
static final String | PREFERENCES_FILENAME = "jarmos.app.prefs" |
The filename for the application preferences. More... | |
static final String | PREF_MODELCACHING = "modelCaching" |
The name for the preference storing information about whether models should be cached when loaded from a web location. More... | |
static final String | PREF_MODELCACHING_OVERWRITE = "modelCachingOverwrite" |
The name for the preference storing information about whether existing model data is overwritten when caching remote models. More... | |
Class that contains miscellaneous JaRMoS specific constants and static functions.
Definition at line 26 of file Const.java.
|
static |
Returns a model manager instance for the current intent.
The intent has to contain the class names of the ModelManagers in the string extra CLASSNAME_EXTRA, any extras like a URL for the WebModelManager have to be present, too.
c | The current context - only needed for asset access (can be getApplicationContext() at calling point) |
i | The current Activities/Services Intent given by getIntent() |
ModelManagerException | Gets thrown when setting a model directory fails. |
Definition at line 86 of file Const.java.
|
static |
The directory where the application may write data to and read from.
At the moment, this is /data/data/jarmos.app/files.
This value gets set first in the onCreate method of the MainActivity class.
Definition at line 42 of file Const.java.
|
static |
The file name within a model directory that contains any runtime-loadable classes.
Used e.g. for the AffineFunctions class of JRB models or the input functions from JKerMor models.
Definition at line 33 of file Const.java.
|
static |
The string describing the class name which denotes the corret AModelManager subclass to be instantiated upon creation.
Definition at line 48 of file Const.java.
|
static |
The string extra in intents to tell which model directory is currently used.
Definition at line 53 of file Const.java.
|
static |
The name for the preference storing information about whether models should be cached when loaded from a web location.
Definition at line 64 of file Const.java.
|
static |
The name for the preference storing information about whether existing model data is overwritten when caching remote models.
Definition at line 70 of file Const.java.
|
static |
The filename for the application preferences.
Definition at line 58 of file Const.java.