CellModules
|
Public Member Functions | |
Simu (string params) | |
Simu (string params, int seed) | |
void | update () |
Updates the simulation by one time step. More... | |
void | update (int nbSteps) |
Updates the simulation by multiple time steps. More... | |
int | getCurrentStep () |
Gets the current number of time steps. More... | |
double | getTime (char format) |
Gets the elapsed time in a given format. More... | |
vector< PrimoCell< CellBody > * > * | _getCells () |
Gets the cells in the simulation. More... | |
Public Attributes | |
CellPlugin< PrimoCell< CellBody > > * | plugins |
Cell plugins. More... | |
Private Attributes | |
scenario_t | scenario |
: params : dict | str
The simulation parameters in JSON format.
: seed : Optional[int]
The seed for the random generators. If not provided, the seed is random.
: cells : CellVector
provides high-performance access to all cell properties.
it's also an iterator to access each cells.
: plugins : CellPlugin
allows access to the plugin part of each module.
|
inline |
|
inline |
|
inline |
|
inline |
CellPlugin<PrimoCell<CellBody> >* Simu::plugins |
|
private |