23 #ifndef SPIN_DETECTOR_H
24 #define SPIN_DETECTOR_H
172 if (receptor_type != 0)
size_t index
Unsigned long type for enumerations.
Definition: nest.h:109
Time t_last_in_spike_
Definition: spin_detector.h:165
void calibrate()
Re-calculate dependent parameters of the node.
Definition: spin_detector.cpp:65
const Name receptor_type("receptor_type")
Connection parameters.
Definition: nest_names.h:240
RecordingDevice device_
Definition: spin_detector.h:162
Definition: lockptrdatum.h:40
Declarations for base class Node.
std::vector< std::vector< Event * > > spikes_
Definition: spin_detector.h:159
void get_status(DictionaryDatum &) const
Definition: spin_detector.cpp:96
Buffers_ B_
Definition: spin_detector.h:163
long_t rport
Connection port number to distinguish incoming connections, also called receiver port.
Definition: nest.h:147
void handle(SpikeEvent &)
Handle incoming spike events.
Definition: spin_detector.cpp:121
Buffer for incoming spikes.
Definition: spin_detector.h:158
Base class for all recording devices.
Definition: recording_device.h:214
spin_detector()
Definition: spin_detector.cpp:34
Definition: nest_time.h:130
port handles_test_event(SpikeEvent &, rport)
Check if the node can handle a particular event and receptor type.
Definition: spin_detector.h:170
std::string get_name() const
Return class name.
Definition: node.cpp:83
Exception to be thrown if the specified receptor type does not exist in the node. ...
Definition: exceptions.h:254
void init_buffers_()
Private function to initialize the buffers of a node.
Definition: spin_detector.cpp:57
bool local_receiver() const
Returns true if the node only receives events from nodes/devices on the same thread.
Definition: spin_detector.h:105
long_t port
Connection port number to distinguis outgoing connections.
Definition: nest.h:155
virtual void handle(SpikeEvent &e)
Handle incoming spike events.
Definition: node.cpp:198
virtual port handles_test_event(SpikeEvent &, rport receptor_type)
Check if the node can handle a particular event and receptor type.
Definition: node.cpp:203
Spike detector class.
Definition: spin_detector.h:96
index last_in_gid_
Definition: spin_detector.h:164
void update(Time const &, const long_t, const long_t)
Update detector by recording spikes.
Definition: spin_detector.cpp:80
Default types used by the NEST kernel.
Event for spike information.
Definition: event.h:320
bool has_proxies() const
Returns true if the node has proxies on remote threads.
Definition: spin_detector.h:104
void finalize()
Flush output stream if requested.
Definition: recording_device.cpp:456
Base class for all NEST network objects.
Definition: node.h:96
void init_state_(Node const &)
Private function to initialize the state of a node to model defaults.
Definition: spin_detector.cpp:50
bool user_set_precise_times_
Definition: spin_detector.h:166
void finalize()
Finalize node.
Definition: spin_detector.h:178
void set_status(const DictionaryDatum &)
Definition: spin_detector.cpp:112
long long_t
Integer number with at least 32 bit.
Definition: nest.h:96