model.js
Global
Class: Model
Workbench Model Class.
Model.initializer()
initializer is executed before the constructor for workbench.Model class.
Model.constructor(settings, settings.basePath, settings.baseFile)
constructor for workbench.Model class.
Parameters
settings: Object
, an object that contains:
settings.basePath: String
, the root path to the data, and
settings.baseFile: String
, the json filename.
Model.destructor()
destructor for workbench.Model class.
Model.initialize()
fetch for workbench.Model class.
Load the model json file.
Model.getHash()
getHash for workbench.Model class.
Returns: String
, the url of model file to be used as part of a unique id.
Model.geturl()
geturl for workbench.Model class.
Returns: String
, the url of model file.
Model.getValue(key)
getValue for workbench.Model class.
Parameters
key: String
, the id of the requested value.
Returns: Object
, the value associated with the key.
Model.initialize()
initialize workbench.Model class.
Model.initialize()
loaded for workbench.Model class.
Returns: bool
, true if the model has been loaded, otherwise false.