23#ifndef PULSEPACKET_GENERATOR_H
24#define PULSEPACKET_GENERATOR_H
128 void update(
Time const&,
const long,
const long )
override;
195 e.set_sender( *
this );
197 return target.handles_test_event( e, receptor_type );
211 ptmp.
set( d, *
this,
this );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Base class for all NEST network objects.
Definition node.h:99
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
@ 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
Definition pulsepacket_generator.h:106
void init_buffers_() override
Configure persistent internal data structures.
Definition pulsepacket_generator.cpp:129
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition pulsepacket_generator.cpp:135
size_t send_test_event(Node &, size_t, synindex, bool) override
Send an event to the receiving_node passed as an argument.
Definition pulsepacket_generator.h:190
StimulationDevice::Type get_type() const override
Definition pulsepacket_generator.h:223
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition pulsepacket_generator.h:208
Buffers_ B_
Definition pulsepacket_generator.h:185
void set_data_from_stimulation_backend(std::vector< double > &input_param) override
Definition pulsepacket_generator.cpp:238
pulsepacket_generator()
Definition pulsepacket_generator.cpp:106
void init_state_() override
Configure state variables depending on runtime information.
Definition pulsepacket_generator.cpp:123
Parameters_ P_
Definition pulsepacket_generator.h:184
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition pulsepacket_generator.h:201
Variables_ V_
Definition pulsepacket_generator.h:186
void update(Time const &, const long, const long) override
Advance the state of the node in time through the given interval.
Definition pulsepacket_generator.cpp:170
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_pulsepacket_generator(const std::string &name)
Definition pulsepacket_generator.cpp:42
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
Declarations for base class Node.
Definition pulsepacket_generator.h:157
std::deque< long > spiketimes_
Definition pulsepacket_generator.h:158
Definition pulsepacket_generator.h:135
double sdev_
standard deviation of the packet
Definition pulsepacket_generator.h:138
Parameters_()
Sets default parameter values.
Definition pulsepacket_generator.cpp:51
std::vector< double > pulse_times_
times of pulses
Definition pulsepacket_generator.h:136
double sdev_tolerance_
Definition pulsepacket_generator.h:140
void set(const Dictionary &, pulsepacket_generator &, Node *)
Set values from dictionary.
Definition pulsepacket_generator.cpp:79
void get(Dictionary &) const
Store current values in dictionary.
Definition pulsepacket_generator.cpp:71
long a_
number of pulses in a packet
Definition pulsepacket_generator.h:137
Definition pulsepacket_generator.h:164
size_t stop_center_idx_
Definition pulsepacket_generator.h:176
double tolerance
Definition pulsepacket_generator.h:177
Variables_()
Definition pulsepacket_generator.cpp:59
normal_distribution normal_dist_
normal distribution
Definition pulsepacket_generator.h:165
size_t start_center_idx_
Indices into sorted vector of sorted pulse-center times (P_.pulse_times_).
Definition pulsepacket_generator.h:175