CellModules
|
grid diffusion based plugin class More...
#include <PluginDiffusion.hpp>
Public Member Functions | |
PluginDiffusion () | |
constructor More... | |
PluginDiffusion (int w, int h) | |
constructor More... | |
PluginDiffusion (int size) | |
constructor More... | |
DiffusionGrid * | getDiffusionGrid () |
grid getter More... | |
void | addMolecule (int n, Molecule m) |
molecule adder More... | |
void | initDiffusionGrid (int size) |
square grid initializer More... | |
void | initDiffusionGrid (int w, int h) |
grid initializer More... | |
void | setToreX (bool b) |
grid toreX setter More... | |
void | setToreY (bool b) |
grid toreY setter More... | |
void | setTore (bool x, bool y) |
grid tore setter More... | |
template<typename world_t > | |
void | preBehaviorUpdate (world_t *w) |
preBehaviorUpdate MecaCell hook More... | |
Private Attributes | |
DiffusionGrid | grid |
grid diffusion based plugin class
cell_t |
Definition at line 29 of file PluginDiffusion.hpp.
|
inline |
|
inline |
constructor
w | : the width of the grid |
h | : the height of the grid |
Definition at line 47 of file PluginDiffusion.hpp.
|
inline |
constructor
size | : the size of the square grid |
Definition at line 56 of file PluginDiffusion.hpp.
|
inline |
molecule adder
n | : number of the molecule |
m | : new molecule to be added |
Definition at line 72 of file PluginDiffusion.hpp.
|
inline |
|
inline |
|
inline |
grid initializer
w | : grid's width |
h | : grid's height |
Definition at line 87 of file PluginDiffusion.hpp.
|
inline |
preBehaviorUpdate MecaCell hook
computes and updates the molecule quantity for each cell
world_t |
w |
Definition at line 122 of file PluginDiffusion.hpp.
|
inline |
grid tore setter
x | : tore property on x-axis |
y | : tore property on y-axis |
Definition at line 110 of file PluginDiffusion.hpp.
|
inline |
|
inline |
|
private |
Definition at line 32 of file PluginDiffusion.hpp.