Reaction (Reaction)

Agents can interact with the local value of a continuum. Reactions specify the terms of those interactions, allowing both constant increase or decrease (injection) and proportional scaling (exponentiation).

MemberTypeDescription
expDoubleAmount by which to scale the local value of the continuum field. Over many iterations, this leads to exponential growth, hence the name.
injDoubleConstant amount by which to increase local continuum value.
layerStringThe name of the continuum layer with which to react.