23#ifndef IGNORE_AND_SPIKE_MECHANISM_H
24#define IGNORE_AND_SPIKE_MECHANISM_H
72 if ( emit_forced_spike )
76 return emit_forced_spike;
80 return emit_dynamic_spike;
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Class implementing an ignore-and-fire mechanism for neuron models.
Definition ignore_and_spike_mechanism.h:40
virtual ~IgnoreAndSpikeMechanism()=default
Virtual destructor.
IgnoreAndSpikeMechanism()
Default constructor.
Definition ignore_and_spike_mechanism.cpp:35
bool spike_event_is_due(bool emit_dynamic_spike)
Updates spike schedule and returns whether a spike should be emitted.
Definition ignore_and_spike_mechanism.h:66
void initialize_interval()
Initialize variables dependent on interval.
Definition ignore_and_spike_mechanism.cpp:60
void get_status(Dictionary &d) const
Retrieves parameters and adds them to the status dictionary.
Definition ignore_and_spike_mechanism.cpp:66
double interval_
Interval between two consecutive spikes (ms).
Definition ignore_and_spike_mechanism.h:116
void set_status(const Dictionary &d, Node *node)
Sets and validates parameters from the status dictionary.
Definition ignore_and_spike_mechanism.cpp:74
bool ignore_and_spike_
If True, the neuron is forced to spike in set intervals.
Definition ignore_and_spike_mechanism.h:110
double offset_
Temporal offset of first spike (ms).
Definition ignore_and_spike_mechanism.h:113
long steps_until_spike_
Remaining steps until the next spike.
Definition ignore_and_spike_mechanism.h:122
long interval_steps_
Interval steps between two consecutive spikes.
Definition ignore_and_spike_mechanism.h:119
void initialize_offset()
Initialize variables dependent on offset.
Definition ignore_and_spike_mechanism.cpp:54
Base class for all NEST network objects.
Definition node.h:99
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33