CellModules
|
molecules diffusion body class More...
#include <BodyDiffusion.hpp>
Public Member Functions | |
BodyDiffusion () | |
default constructor More... | |
BodyDiffusion (int size) | |
constructor More... | |
void | initNbMolecules (int n) |
quantities & consumptions initializer More... | |
double | getQuantity (int x, int y, int mol) |
quantities getter More... | |
double | getConsumption (int mol) |
consumption getter More... | |
vector< double > | getConsumptions () const |
consumptions getter More... | |
void | setConsumption (int mol, double value) |
consumption setter More... | |
DiffusionGrid * | getDiffusionGrid () |
grid getter More... | |
void | onCellPluginLinking () |
plugin linking hook More... | |
void | setCellPlugin (plugin_t *_cellPlugin) |
Protected Attributes | |
plugin_t * | cellPlugin |
Private Attributes | |
vector< double > | consumptions |
int | nbMolecules = 0 |
molecules diffusion body class
cell_t |
Definition at line 31 of file BodyDiffusion.hpp.
|
inline |
|
inlineexplicit |
constructor
size | : number of existing molecules |
Definition at line 48 of file BodyDiffusion.hpp.
|
inline |
consumption getter
mol | : number of the molecule |
Definition at line 80 of file BodyDiffusion.hpp.
|
inline |
|
inline |
|
inline |
quantities getter
x | : x pos |
y | : y pos |
mol | : number of the molecule |
Definition at line 70 of file BodyDiffusion.hpp.
|
inline |
quantities & consumptions initializer
n | : number of existing molecules |
Definition at line 56 of file BodyDiffusion.hpp.
|
inline |
plugin linking hook
hook called when the body has access to the plugin, this happens when the cell is added to the world ( w.addCell(c) ). This hook can be useful for setting up Body properties based on elements from the Plugin part.
Definition at line 116 of file BodyDiffusion.hpp.
|
inlineinherited |
Definition at line 14 of file BaseBody.hpp.
|
inline |
consumption setter
mol | : number of the molecule |
value |
Definition at line 96 of file BodyDiffusion.hpp.
|
protectedinherited |
Definition at line 9 of file BaseBody.hpp.
|
private |
Definition at line 34 of file BodyDiffusion.hpp.
|
private |
consumption of each molecules per step
Definition at line 35 of file BodyDiffusion.hpp.