24#ifndef BERNOULLI_SYNAPSE_H
25#define BERNOULLI_SYNAPSE_H
86template <
typename target
identifierT >
181template <
typename target
identifierT >
184template <
typename target
identifierT >
188 ConnectionBase::get_status( d );
194template <
typename target
identifierT >
198 ConnectionBase::set_status( d, cm );
202 if ( p_transmit_ < 0 or p_transmit_ > 1 )
204 throw BadProperty(
"Spike transmission probability must be in [0, 1]." );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Exception to be thrown if a status parameter is incomplete or inconsistent.
Definition exceptions.h:680
virtual double drand()=0
Uses the wrapped RNG engine to draw a double from a uniform distribution in the range [0,...
Class containing the common properties for all connections of a certain type.
Definition common_synapse_properties.h:50
Base class for dummy nodes used in connection testing.
Definition connection.h:67
Base class for representing connections.
Definition connection.h:110
void check_connection_(Node &dummy_target, Node &source, Node &target, const size_t receptor_type)
This function calls check_connection() on the sender to check if the receiver accepts the event type ...
Definition connection.h:319
long get_delay_steps() const
Return the delay of the connection in steps.
Definition connection.h:181
Node * get_target(const size_t tid) const
Definition connection.h:239
size_t get_rport() const
Definition connection.h:244
Definition connector_model.h:69
Encapsulate information sent between nodes.
Definition event.h:103
Base class for all NEST network objects.
Definition node.h:99
Event for spike information.
Definition event.h:418
size_t get_multiplicity() const
Definition event.h:449
Definition bernoulli_synapse.h:126
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition bernoulli_synapse.h:132
Definition bernoulli_synapse.h:88
long get_delay_steps() const
Return the delay of the connection in steps.
Definition connection.h:181
bernoulli_synapse & operator=(const bernoulli_synapse &rhs)=default
Node * get_target(const size_t tid) const
Definition connection.h:239
void get_status(Dictionary &d) const
Definition bernoulli_synapse.h:186
void check_connection(Node &s, Node &t, size_t receptor_type, const CommonPropertiesType &)
Definition bernoulli_synapse.h:139
void set_weight(double w)
Definition bernoulli_synapse.h:171
Connection< targetidentifierT > ConnectionBase
Definition bernoulli_synapse.h:92
double p_transmit_
Definition bernoulli_synapse.h:178
void set_status(const Dictionary &d, ConnectorModel &cm)
Definition bernoulli_synapse.h:196
size_t get_rport() const
Definition connection.h:244
CommonSynapseProperties CommonPropertiesType
Definition bernoulli_synapse.h:91
bool send(Event &e, size_t t, const CommonSynapseProperties &)
Definition bernoulli_synapse.h:146
double weight_
Definition bernoulli_synapse.h:177
static constexpr ConnectionModelProperties properties
Definition bernoulli_synapse.h:94
bernoulli_synapse()
Default Constructor.
Definition bernoulli_synapse.h:102
bernoulli_synapse(const bernoulli_synapse &rhs)=default
Copy constructor from a property object.
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
const std::string p_transmit("p_transmit")
const std::string weight("weight")
const std::string size_of("sizeof")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
RngPtr get_vp_specific_rng(size_t tid)
Definition kernel_manager.h:298
void register_bernoulli_synapse(const std::string &name)
Definition bernoulli_synapse.cpp:32
ConnectionModelProperties
Definition connector_model.h:49
constexpr size_t invalid_port
Value for invalid connection port number.
Definition nest_types.h:141