24#ifndef STEP_CURRENT_GENERATOR_H
25#define STEP_CURRENT_GENERATOR_H
224 e.set_sender( *
this );
226 return target.handles_test_event( e, receptor_type );
232 if ( receptor_type != 0 )
252 ptmp.
set( d,
B_,
this );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Event for electrical currents.
Definition event.h:569
Request data to be logged/logged data to be sent.
Definition event.h:636
Base class for all NEST network objects.
Definition node.h:99
std::string get_name() const
Return class name.
Definition node.cpp:105
Map names of recordables to data access functions.
Definition recordables_map.h:61
Base class for common properties of StimulationDevices.
Definition stimulation_device.h:154
void enforce_single_syn_type(synindex)
Throws IllegalConnection if synapse id differs from initial synapse id.
Definition stimulation_device.cpp:62
Type
Device type.
Definition stimulation_device.h:187
@ CURRENT_GENERATOR
Definition stimulation_device.h:188
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition stimulation_device.cpp:125
void get_status(Dictionary &d) const override
Export properties of the node by setting entries in the status dictionary.
Definition stimulation_device.cpp:168
Definition nest_time.h:135
Exception to be thrown if the specified receptor type does not exist in the node.
Definition exceptions.h:417
Definition step_current_generator.h:109
StimulationDevice::Type get_type() const override
Definition step_current_generator.h:271
step_current_generator()
Definition step_current_generator.cpp:224
Buffers_ B_
Definition step_current_generator.h:215
size_t send_test_event(Node &, size_t, synindex, bool) override
Send an event to the receiving_node passed as an argument.
Definition step_current_generator.h:219
size_t handles_test_event(DataLoggingRequest &, size_t) override
Definition step_current_generator.h:230
void handle(DataLoggingRequest &) override
Handler for universal data logging request.
Definition step_current_generator.cpp:317
void init_state_() override
Configure state variables depending on runtime information.
Definition step_current_generator.cpp:247
void init_buffers_() override
Configure persistent internal data structures.
Definition step_current_generator.cpp:253
friend class UniversalDataLogger< step_current_generator >
Definition step_current_generator.h:188
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition step_current_generator.h:240
void set_data_from_stimulation_backend(std::vector< double > &input_spikes) override
Definition step_current_generator.cpp:326
Parameters_ P_
Definition step_current_generator.h:213
State_ S_
Definition step_current_generator.h:214
static RecordablesMap< step_current_generator > recordablesMap_
Definition step_current_generator.h:212
bool local_receiver() const override
Allow multimeter to connect to local instances.
Definition step_current_generator.h:265
double get_I_() const
Definition step_current_generator.h:205
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition step_current_generator.h:249
void update(Time const &, long, long) override
Advance the state of the node in time through the given interval.
Definition step_current_generator.cpp:275
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition step_current_generator.cpp:263
virtual size_t handles_test_event(SpikeEvent &, size_t receptor_type)
Check if the node can handle a particular event and receptor type.
Definition node.cpp:271
virtual void handle(SpikeEvent &e)
Handle incoming spike events.
Definition node.cpp:265
const std::string recordables("recordables")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_step_current_generator(const std::string &name)
Definition step_current_generator.cpp:35
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
Definition step_current_generator.h:193
size_t idx_
index of current amplitude
Definition step_current_generator.h:194
UniversalDataLogger< step_current_generator > logger_
Definition step_current_generator.h:199
double amp_
current amplitude
Definition step_current_generator.h:195
Store independent parameters of the model.
Definition step_current_generator.h:147
Parameters_(const Parameters_ &, Buffers_ &)
void get(Dictionary &) const
Store current values in dictionary.
Definition step_current_generator.cpp:106
bool allow_offgrid_amp_times_
Allow and round up amplitude times not on steps.
Definition step_current_generator.h:155
void set(const Dictionary &, Buffers_ &, Node *)
Set values from dictionary.
Definition step_current_generator.cpp:164
Parameters_ & operator=(const Parameters_ &p)
Definition step_current_generator.cpp:68
std::vector< double > amp_values_
Amplitude values activated at given times.
Definition step_current_generator.h:152
std::vector< Time > amp_time_stamps_
Times of amplitude changes.
Definition step_current_generator.h:149
Parameters_()
Sets default parameter values.
Definition step_current_generator.cpp:53
Time validate_time_(double, const Time &)
Return time as Time object if valid, otherwise throw BadProperty.
Definition step_current_generator.cpp:120
Definition step_current_generator.h:178
double I_
Instantaneous current value; used for recording current.
Definition step_current_generator.h:179
State_()
Sets default parameter values.
Definition step_current_generator.cpp:82