SimParameter Class Reference

Structure which encapsulates all global simulation parameters. More...

#include <SimParameter.h>

Collaboration diagram for SimParameter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimParameter (const Time &dt=SimParameter::Default.dt, const Time &minDelay=SimParameter::Default.minDelay, const Time &maxDelay=SimParameter::Default.maxDelay, uint32 constructionRNGSeed=0, uint32 simulationRNGSeed=0)
 Constructor.
virtual ~SimParameter ()

Public Attributes

Time dt
 The simulation step size.
Time minDelay
 The minimal delay allowed for spikes.
Time maxDelay
 The maximal delay allowed for spikes as well as analog messages.
uint32 constructionRNGSeed
 Seed for the random number generator used in the construction process.
uint32 simulationRNGSeed
 Seed for random number generators used in the simulation phase.

Static Public Attributes

static SimParameter Default
 This static member holds all the default values.


Detailed Description

Structure which encapsulates all global simulation parameters.

Definition at line 8 of file SimParameter.h.


Constructor & Destructor Documentation

SimParameter::SimParameter ( const Time dt = SimParameter::Default.dt,
const Time minDelay = SimParameter::Default.minDelay,
const Time maxDelay = SimParameter::Default.maxDelay,
uint32  constructionRNGSeed = 0,
uint32  simulationRNGSeed = 0 
) [inline]

Constructor.

Definition at line 15 of file SimParameter.h.

References Time::steps().

Here is the call graph for this function:

virtual SimParameter::~SimParameter (  )  [inline, virtual]

Definition at line 31 of file SimParameter.h.


Member Data Documentation

Seed for the random number generator used in the construction process.

NOTE : This seed must be set equal to all mpi processing nodes, otherwise an error will occur. (TODO: Automatic check to ensure consistency of seeds will be implemented in the future)

If the same seed is used for construction of the same network, then the exactly the same network will be generated (identical topology, and identical parameters of elements) provided that the number of machines and number of threads on each machine don't change.

Definition at line 54 of file SimParameter.h.

Referenced by SingleThreadNetwork::seed_noise_rng(), MultiThreadNetwork::seed_noise_rng(), DistributedNetwork::seed_noise_rng(), and SimNetwork::setupConstructRNGEngines().

Seed for random number generators used in the simulation phase.

Usually used for noise in neurons, poison spike train generators, ion channel state switching etc.

Under the same environment, with the same network and the same simulation_seed value, the produced simulation results should be identical.

NOTE: If the hardware environment used for simulation is changed (number of machines and number of threads per each machine) then simulation results can differ even with the same simulation rng seed number.

Definition at line 68 of file SimParameter.h.

Referenced by DistributedMultiThreadNetwork::init(), and SingleThreadSimEngine::SingleThreadSimEngine().

This static member holds all the default values.

Definition at line 72 of file SimParameter.h.


The documentation for this class was generated from the following files:

Generated on Wed Jul 9 16:34:53 2008 for PCSIM by  doxygen 1.5.5