23 #ifndef STIMULATING_DEVICE_H
24 #define STIMULATING_DEVICE_H
32 class DoubleDataEvent;
116 template <
typename EmittedEvent>
147 template <
typename EmittedEvent>
153 template <
typename EmittedEvent>
172 return get_t_min_() <= step && step < get_t_max_();
181 return get_t_min_() <= step && step < get_t_max_();
190 return get_t_min_() < stamp && stamp <= get_t_max_();
193 template <
typename EmittedEvent>
198 Device::get_status(d);
201 template <
typename EmittedEvent>
206 first_syn_id_ = syn_id;
208 if ( syn_id != first_syn_id_ )
209 throw IllegalConnection(
"All outgoing connections from a device must use the same synapse type.");
Definition: lockptrdatum.h:40
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
Base class for common properties of Stimulating Devices.
Definition: stimulating_device.h:117
To be thrown if a connection is not possible.
Definition: exceptions.h:317
void enforce_single_syn_type(synindex)
Throws IllegalConnection if synapse id differs from initial synapse id.
Definition: stimulating_device.h:203
delay get_steps() const
Definition: nest_time.h:395
const synindex invalid_synindex
Definition: nest.h:116
const Name element_type("element_type")
Node type.
Definition: nest_names.h:117
synindex first_syn_id_
Synapse type of the first outgoing connection made by the Device.
Definition: stimulating_device.h:144
Class implementing common interface and properties common for all devices.
Definition: device.h:94
virtual ~StimulatingDevice()
Definition: stimulating_device.h:122
Definition: nest_time.h:130
StimulatingDevice()
Definition: stimulating_device.h:148
void get_status(DictionaryDatum &d) const
Definition: stimulating_device.h:195
const Name stimulator("stimulator")
Node type.
Definition: nest_names.h:267
Definition: namedatum.h:90
unsigned char synindex
Unsigned char type for enumerations of synapse types.
Definition: nest.h:115
bool is_active(const Time &) const
Determine whether device is active.
long long_t
Integer number with at least 32 bit.
Definition: nest.h:96