parseModule: Parse and initialize a module

Description Usage Arguments Value Author(s)

Description

Internal function, used during simInit.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
.parseModulePartial(sim, modules, filename, defineModuleElement)

## S4 method for signature 'missing,missing,character,character'
.parseModulePartial(filename,
  defineModuleElement)

## S4 method for signature 'simList,list,missing,character'
.parseModulePartial(sim, modules,
  defineModuleElement)

.parseModule(sim, modules, userSuppliedObjNames = NULL)

## S4 method for signature 'simList,list'
.parseModule(sim, modules,
  userSuppliedObjNames = NULL)

Arguments

sim

A simList simulation object.

modules

A list of modules with a logical attribute "parsed".

filename

The filename of the module to be parsed.

defineModuleElement

Character string indicating which of the list elements in defineModule should be extracted

userSuppliedObjNames

Character string (or NULL, the default) indicating the names of objects that user has passed into simInit via objects or inputs. If all module inputObject dependencies are provided by user, then the .inputObjects code will be skipped.

Value

.parseModulePartial extracts just the individual element requested from the module. This can be useful if parsing the whole module would cause an error.

A simList simulation object.

Author(s)

Eliot McIntire

Alex Chubaty



Search within the SpaDES package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.