Guide to Writing Components and Modules for MASH

Classes

Methods

Fields

Setup Functions

XX.Setup() are functions called before any R6Class objects are created in an environment, and directly add/modify methods and fields in R6ClassGenerator objects.

Init Methods

XX.Init() are methods attached to R6ClassGenerator objects that initialize certain parameters or fields of R6Class objects that already exist in an environment. They are not typically called during construction of the object and are usually called afterwards, with user input, prior to beginning a simulation.

Parameters Functions

XX.Parameters() are functions that usually return a list of parameters, and are typically called with default arguments during initialization and whose output is typically assigned to a private field of the form private$XX_PAR.

Utility Functions



smitdave/MASH documentation built on May 30, 2019, 5:02 a.m.