Global

Methods

SBMLParse(fileContent) → {array}

Transforms text content of SBML file to Q-array.

Parameters:
Name Type Description
fileContent string

SBML file content.

Returns:

Parsed content in Q-array format.

Type
array

_JSONParse(filename, …params) → {array}

Auxillary function to parse JSON file in _Module#setJSONModule method. This function is a wrapper of JSON.parse() method to get more clear description of errors.

Parameters:
Name Type Attributes Description
filename string

File to parse. It is used only for log messages.

params any <repeatable>

Additional parameters passed to JSON.parse() method.

Returns:

An object representing JSON file content.

Type
array

_hetaParse(filename, …params) → {array}

This method is a wrapper for parse() method of "heta-parser" package to show errors location.

Parameters:
Name Type Attributes Description
filename string

File to parse. It is used only for log messages.

params any <repeatable>

Additional parameters passed to parse() method.

Returns:

Module content in Q-array format.

Type
array

compose(obj, arr) → {Array.<object>}

Applies include-level modifiers to every Q-object from an included module.

The include action fields (action, id, source, type, sheet, class) are removed before the remaining properties are merged into included objects.

Parameters:
Name Type Description
obj object

Include Q-object with modifiers.

arr Array.<object>

Q-array to modify.

Returns:

Modified Q-array.

Type
Array.<object>

getIndexFromQ(q) → {string}

Calculates string formatted index. Example: {id: 'k1', space: 'one'} => 'one::k1'

Parameters:
Name Type Description
q object

Heta's element in Q-object format.

Returns:

Get index of a component.

Type
string

hetaLoader() → {Module}

To initialize a Heta module of the "heta" type. It includes reading and parsing file formatted as Heta code, see Heta specifications

Returns:

Self.

Type
Module

jsonLoader() → {Module}

To initialize a Heta module of the "json" type. It includes reading and parsing file formatted as Heta-JSON, see Heta specifications

Returns:

Self.

Type
Module

sbmlLoader() → {_Module}

To initialize a Heta module of the "sbml" type. It includes reading and parsing SBML file and representing it into Q-object, see Heta specifications

Returns:

Self.

Type
_Module

tableLoader() → {Module}

To initialize a Heta module of the "table" type. It includes reading and parsing of file formatted as Heta-tables, see Heta specifications

Returns:

Self.

Type
Module

yamlLoader() → {Module}

To initialize a Heta module of the "yaml" type. It includes reading and parsing file formatted as Heta-YAML, see Heta specifications

Returns:

Self.

Type
Module