23#ifndef SPIN_DETECTOR_H
24#define SPIN_DETECTOR_H
159 void update(
Time const&,
const long,
const long )
override;
169 if ( receptor_type != 0 )
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
virtual SignalType receives_signal() const
Definition node.h:974
std::string get_name() const
Return class name.
Definition node.cpp:105
Base class for all recording devices.
Definition recording_device.h:157
Type
Definition recording_device.h:169
Event for spike information.
Definition event.h:418
Class to convert times from one representation to another.
Definition nest_timeconverter.h:42
Time from_old_tics(tic_t t_old) const
Converts a given number of tics with respect to old representation into a time object in current repr...
Definition nest_timeconverter.cpp:49
Definition nest_time.h:135
tic_t get_tics() const
Definition nest_time.h:474
Exception to be thrown if the specified receptor type does not exist in the node.
Definition exceptions.h:417
Definition spin_detector.h:103
void handle(SpikeEvent &) override
Handle incoming spike events.
Definition spin_detector.cpp:117
SpikeEvent last_event_
Definition spin_detector.h:162
spin_detector()
Definition spin_detector.cpp:45
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition spin_detector.cpp:86
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition spin_detector.cpp:110
std::string get_element_type() const override
Return the element type of the node.
Definition spin_detector.h:121
Type get_type() const override
Definition spin_detector.cpp:80
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition spin_detector.h:167
Time t_last_in_spike_
Definition spin_detector.h:163
bool has_proxies() const override
Returns true if the node has proxies on remote threads.
Definition spin_detector.h:110
size_t last_in_node_id_
Definition spin_detector.h:161
bool local_receiver() const override
Returns true if the node only receives events from nodes/devices on the same thread.
Definition spin_detector.h:115
SignalType receives_signal() const override
Definition spin_detector.h:177
void calibrate_time(const TimeConverter &tc) override
Re-calculate time-based properties of the node.
Definition spin_detector.h:183
void update(Time const &, const long, const long) override
Update detector by recording spikes.
Definition spin_detector.cpp:70
void init_buffers_() override
Configure persistent internal data structures.
Definition spin_detector.cpp:59
void pre_run_hook() override
Set internal variables before calls to SimulationManager::run()
Definition spin_detector.cpp:64
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 recorder("recorder")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_spin_detector(const std::string &name)
Spin detector class.
Definition spin_detector.cpp:39
SignalType
enum type of signal conveyed by spike events of a node.
Definition nest_types.h:165
@ BINARY
Definition nest_types.h:168