casasglobal-org / psymple

GNU General Public License v3.0
1 stars 1 forks source link

Different function implementations #44

Open GJHSimmons opened 3 months ago

GJHSimmons commented 3 months ago

There are three types of function which can be used in model composition:

  1. Functional responses: these are modular objects which approximate the response laws of model components to external stimuli, such as mortality responses to temperature. These respond to model parameters, functions and variables.
  2. Symbolic functions: user-facing functions which streamline common tasks, such as computing physiological time or supply-demand ratios. These respond to model functions and variables, but their behaviour is not determined by model parameters.
  3. Global parameters: functions of global variables (time, space) which can be freely utilised in any expression. These do not respond to model parameters, functions or variables.

The implementation of functional responses is planned to be through FunctionalPortedObject classes.

The implementation of the remaining two use cases is yet to be developed.

Related to #28, #31 and #32.