JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
jarmos.app.Const Class Reference

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...
 

Detailed Description

Class that contains miscellaneous JaRMoS specific constants and static functions.

Author
Daniel Wirtz
Date
Aug 24, 2011

Definition at line 26 of file Const.java.

Member Function Documentation

static AModelManager jarmos.app.Const.getModelManager ( Context  c,
Intent  i 
) throws ModelManagerException
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.

Parameters
cThe current context - only needed for asset access (can be getApplicationContext() at calling point)
iThe current Activities/Services Intent given by getIntent()
Returns
A model manager suitable for the given intent
Exceptions
ModelManagerExceptionGets thrown when setting a model directory fails.

Definition at line 86 of file Const.java.

Member Data Documentation

String jarmos.app.Const.APP_DATA_DIRECTORY = null
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.

final String jarmos.app.Const.DEX_CLASSES_JARFILE = "dexclasses.jar"
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.

final String jarmos.app.Const.EXTRA_MODELMANAGER_CLASSNAME = "amodelmanager_classname"
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.

final String jarmos.app.Const.EXTRA_MODELMANAGER_MODELDIR = "amodelmanager_modeldir"
static

The string extra in intents to tell which model directory is currently used.

Definition at line 53 of file Const.java.

final String jarmos.app.Const.PREF_MODELCACHING = "modelCaching"
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.

final String jarmos.app.Const.PREF_MODELCACHING_OVERWRITE = "modelCachingOverwrite"
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.

final String jarmos.app.Const.PREFERENCES_FILENAME = "jarmos.app.prefs"
static

The filename for the application preferences.

Definition at line 58 of file Const.java.


The documentation for this class was generated from the following file: