23#ifndef STIMULATION_DEVICE_H
24#define STIMULATION_DEVICE_H
201 void update(
Time const&,
const long,
const long )
override {};
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Base class for device objects.
Definition device_node.h:36
Class implementing common interface and properties common for all devices.
Definition device.h:60
virtual void pre_run_hook()
Set internal variables before calls to SimulationManager::run()
Definition device.cpp:141
virtual void init_buffers()
Reset buffers.
Definition device.h:76
virtual void init_state()
Reset dynamic state to that of model.
Definition device.h:70
Base class for all Kernel exceptions.
Definition exceptions.h:65
virtual void pre_run_hook()=0
Re-calculate dependent parameters of the node.
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
StimulationDevice()
Definition stimulation_device.cpp:31
bool is_active(const Time &) const override
Determine whether device is active.
Definition stimulation_device.cpp:49
void update(Time const &, const long, const long) override
Advance the state of the node in time through the given interval.
Definition stimulation_device.h:201
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition stimulation_device.cpp:75
Type
Device type.
Definition stimulation_device.h:187
@ CURRENT_GENERATOR
Definition stimulation_device.h:188
@ DELAYED_RATE_CONNECTION_GENERATOR
Definition stimulation_device.h:191
@ SPIKE_GENERATOR
Definition stimulation_device.h:189
@ DOUBLE_DATA_GENERATOR
Definition stimulation_device.h:190
const std::string & get_label() const
Definition stimulation_device.cpp:87
virtual void set_data_from_stimulation_backend(std::vector< double > &)
Definition stimulation_device.h:200
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition stimulation_device.cpp:125
bool has_proxies() const override
Returns true if the node has proxies on remote threads.
Definition stimulation_device.h:238
virtual Type get_type() const
Definition stimulation_device.h:195
struct nest::StimulationDevice::Parameters_ P_
Dictionary backend_params_
Definition stimulation_device.h:228
std::string get_element_type() const override
Return the element type of the node.
Definition stimulation_device.h:232
synindex first_syn_id_
Synapse type of the first outgoing connection made by the Device.
Definition stimulation_device.h:226
~StimulationDevice() override=default
void set_initialized_() final
Definition stimulation_device.cpp:81
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
const std::string stimulator("stimulator")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
Definition stimulation_device.h:207
std::string stimulus_source_
Origin of the stimulation signal.
Definition stimulation_device.h:209
std::string label_
A user-defined label for symbolic device names.
Definition stimulation_device.h:208
Parameters_ & operator=(const Parameters_ &)=default
Parameters_(const Parameters_ &)=default