23#ifndef SPIKE_DILUTOR_H
24#define SPIKE_DILUTOR_H
130 void update(
Time const&,
const long,
const long )
override;
177 e.set_sender( *
this );
178 return target.handles_test_event( e, receptor_type );
184 if ( receptor_type != 0 )
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
"Callback request event" for use in Device.
Definition event.h:521
Base class for device objects.
Definition device_node.h:36
Base class for all NEST network objects.
Definition node.h:99
virtual void event_hook(DSSpikeEvent &)
Modify Event object parameters during event delivery.
Definition node.cpp:586
std::string get_name() const
Return class name.
Definition node.cpp:105
Buffer Layout.
Definition ring_buffer.h:83
Event for spike information.
Definition event.h:418
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
@ SPIKE_GENERATOR
Definition stimulation_device.h:189
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 spike_dilutor.h:159
StimulationDevice::Type get_type() const override
Definition spike_dilutor.h:161
Definition spike_dilutor.h:90
void update(Time const &, const long, const long) override
Advance the state of the node in time through the given interval.
Definition spike_dilutor.cpp:128
size_t send_test_event(Node &, size_t, synindex, bool) override
Send an event to the receiving_node passed as an argument.
Definition spike_dilutor.h:172
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition spike_dilutor.h:192
void init_state_() override
Configure state variables depending on runtime information.
Definition spike_dilutor.cpp:97
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition spike_dilutor.h:182
nest::spike_dilutor::DilutorStimulationDevice device_
spike_dilutor()
Definition spike_dilutor.cpp:78
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition spike_dilutor.cpp:118
Parameters_ P_
Definition spike_dilutor.h:167
void init_buffers_() override
Configure persistent internal data structures.
Definition spike_dilutor.cpp:111
std::string get_element_type() const override
Return the element type of the node.
Definition spike_dilutor.h:109
Buffers_ B_
Definition spike_dilutor.h:168
bool has_proxies() const override
Returns true if the node has proxies on remote threads.
Definition spike_dilutor.h:97
void handle(SpikeEvent &) override
Handle incoming spike events.
Definition spike_dilutor.cpp:184
void event_hook(DSSpikeEvent &) override
Modify Event object parameters during event delivery.
Definition spike_dilutor.cpp:151
bool local_receiver() const override
Returns true if the node only receives events from nodes/devices on the same thread.
Definition spike_dilutor.h:103
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition spike_dilutor.h:199
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 stimulator("stimulator")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_spike_dilutor(const std::string &name)
Definition spike_dilutor.cpp:39
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
Definition spike_dilutor.h:152
RingBuffer n_spikes_
Definition spike_dilutor.h:153
Store independent parameters of the model.
Definition spike_dilutor.h:140
Parameters_(const Parameters_ &)=default
double p_copy_
copy probability for each incoming spike
Definition spike_dilutor.h:141
Parameters_ & operator=(const Parameters_ &)=default
Parameters_()
Sets default parameter values.
Definition spike_dilutor.cpp:49
void get(Dictionary &) const
Store current values in dictionary.
Definition spike_dilutor.cpp:59
void set(const Dictionary &, Node *node)
Set values from dictionary.
Definition spike_dilutor.cpp:65