Public Member Functions | |
| Parameters_ () | |
| Sets default parameter values. | |
| Parameters_ (const Parameters_ &)=default | |
| Parameters_ & | operator= (const Parameters_ &)=default |
| void | get (Dictionary &) const |
| Store current values in dictionary. | |
| void | set (const Dictionary &, State_ &, const Time &, const Time &, Node *node) |
| Set values from dictionary. | |
| void | assert_valid_spike_time_and_insert_ (double, const Time &, const Time &) |
| Insert spike time to arrays, throw BadProperty for invalid spike times. | |
Public Attributes | |
| std::vector< Time > | spike_stamps_ |
| Spike time stamp as Time, rel to origin_. | |
| std::vector< double > | spike_offsets_ |
| Spike time offset, if using precise_times_. | |
| std::vector< double > | spike_weights_ |
| Spike weights as double. | |
| std::vector< long > | spike_multiplicities_ |
| Spike multiplicity. | |
| bool | precise_times_ |
| Interpret spike times as precise, i.e. send as step and offset. | |
| bool | allow_offgrid_times_ |
| Allow and round up spikes not on steps; irrelevant if precise_times_. | |
| bool | shift_now_spikes_ |
| Shift spike times at present to next step. | |
| nest::spike_generator::Parameters_::Parameters_ | ( | ) |
Sets default parameter values.
References allow_offgrid_times_, precise_times_, shift_now_spikes_, spike_multiplicities_, spike_offsets_, spike_stamps_, and spike_weights_.
Referenced by operator=(), and Parameters_().
|
default |
| void nest::spike_generator::Parameters_::assert_valid_spike_time_and_insert_ | ( | double | t, |
| const Time & | origin, | ||
| const Time & | now ) |
Insert spike time to arrays, throw BadProperty for invalid spike times.
| spike | time, ms |
| origin | |
| current | simulation time |
References allow_offgrid_times_, nest::Time::ms, nest::Time::ms_stamp, precise_times_, shift_now_spikes_, spike_offsets_, and spike_stamps_.
Referenced by set().
| void nest::spike_generator::Parameters_::get | ( | Dictionary & | d | ) | const |
Store current values in dictionary.
References nest::names::allow_offgrid_times(), allow_offgrid_times_, nest::names::precise_times(), precise_times_, nest::names::shift_now_spikes(), shift_now_spikes_, nest::names::spike_multiplicities(), spike_multiplicities_, spike_offsets_, spike_stamps_, nest::names::spike_times(), nest::names::spike_weights(), and spike_weights_.
|
default |
| void nest::spike_generator::Parameters_::set | ( | const Dictionary & | d, |
| State_ & | s, | ||
| const Time & | origin, | ||
| const Time & | now, | ||
| Node * | node ) |
Set values from dictionary.
References nest::names::allow_offgrid_times(), allow_offgrid_times_, assert_valid_spike_time_and_insert_(), nest::names::origin(), nest::spike_generator::State_::position_, nest::names::precise_times(), precise_times_, nest::names::shift_now_spikes(), shift_now_spikes_, nest::names::spike_multiplicities(), spike_multiplicities_, spike_offsets_, spike_stamps_, nest::names::spike_times(), nest::names::spike_weights(), spike_weights_, and nest::update_value_param().
Referenced by nest::spike_generator::set_data_from_stimulation_backend(), and nest::spike_generator::set_status().
| bool nest::spike_generator::Parameters_::allow_offgrid_times_ |
Allow and round up spikes not on steps; irrelevant if precise_times_.
Referenced by assert_valid_spike_time_and_insert_(), get(), Parameters_(), and set().
| bool nest::spike_generator::Parameters_::precise_times_ |
Interpret spike times as precise, i.e. send as step and offset.
Referenced by assert_valid_spike_time_and_insert_(), get(), Parameters_(), set(), and nest::spike_generator::set_data_from_stimulation_backend().
| bool nest::spike_generator::Parameters_::shift_now_spikes_ |
Shift spike times at present to next step.
Referenced by assert_valid_spike_time_and_insert_(), get(), Parameters_(), and set().
| std::vector< long > nest::spike_generator::Parameters_::spike_multiplicities_ |
Spike multiplicity.
Referenced by get(), Parameters_(), and set().
| std::vector< double > nest::spike_generator::Parameters_::spike_offsets_ |
Spike time offset, if using precise_times_.
Referenced by assert_valid_spike_time_and_insert_(), get(), Parameters_(), and set().
| std::vector< Time > nest::spike_generator::Parameters_::spike_stamps_ |
Spike time stamp as Time, rel to origin_.
Referenced by assert_valid_spike_time_and_insert_(), get(), Parameters_(), and set().
| std::vector< double > nest::spike_generator::Parameters_::spike_weights_ |
Spike weights as double.
Referenced by get(), Parameters_(), and set().