23 #ifndef CONNECTION_MANAGER_H
24 #define CONNECTION_MANAGER_H
36 #include "../models/volume_transmitter.h"
size_t index
Unsigned long type for enumerations.
Definition: nest.h:109
void send(thread t, index sgid, Event &e)
size_t num_connections_
The global counter for the number of synapses.
Definition: connection_manager.h:173
synindex register_synapse_prototype(ConnectorModel *cf)
Register a synapse type.
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
Definition: connector_base.h:88
void get_status(DictionaryDatum &d) const
Add ConnectionManager specific stuff to the root status dictionary.
Encapsulates information which is sent between Nodes.
Definition: event.h:73
void calibrate(const TimeConverter &)
Resize the structures for the Connector objects if necessary.
Network & net_
The reference to the network.
Definition: connection_manager.h:160
DictionaryDatum get_synapse_status(index gid, synindex syn_id, port p, thread tid)
std::vector< tSConnector > tVSConnector
Definition: connection_manager.h:53
bool get_user_set_delay_extrema() const
Dictionary * synapsedict_
The synapsedict (owned by the network)
Definition: connection_manager.h:161
std::vector< std::vector< ConnectorModel * > > prototypes_
The list of available synapse prototypes: first dimenasion one entry per thread, second dimantion for...
Definition: connection_manager.h:158
synindex copy_synapse_prototype(synindex old_id, std::string new_name)
Definition: tokenarray.h:62
google::sparsetable< ConnectorBase * > tSConnector
Definition: connection_manager.h:52
void connect(Node &s, Node &r, index s_gid, thread tid, index syn, double_t d=NAN, double_t w=NAN)
Connect is used to establish a connection between a sender and receiving node.
A class that associates names and tokens.
Definition: dict.h:45
const Name w("w")
Specific to Brette & Gerstner 2005 (aeif_cond-*)
Definition: nest_names.h:343
ConnectorBase * validate_source_entry(thread tid, index s_gid, synindex syn_id)
void trigger_update_weight(const long_t vt_gid, const vector< spikecounter > &dopa_spikes, const double_t t_trig)
Manages the available connection prototypes and connections.
Definition: connection_manager.h:49
Definition: nest_time.h:130
void set_synapse_status(index gid, synindex syn_id, port p, thread tid, const DictionaryDatum &d)
const Name source("source")
Connection parameters.
Definition: nest_names.h:260
const ConnectorModel & get_synapse_prototype(synindex syn_id, thread t=0) const
Return pointer to protoype for given synapse id.
Definition: connection_manager.h:196
const Name target("target")
Connection parameters.
Definition: nest_names.h:282
const Time get_max_delay() const
void assert_valid_syn_id(synindex syn_id, thread t=0) const
Asserts validity of synapse index, otherwise throws exception.
Definition: connection_manager.h:203
Main administrative interface to the network.
Definition: network.h:135
Class to convert times from one representation to another.
Definition: nest_timeconverter.h:45
ConnectionManager(Network &net)
void set_prototype_status(synindex syn_id, const DictionaryDatum &d)
long_t port
Connection port number to distinguis outgoing connections.
Definition: nest.h:155
ArrayDatum get_connections(DictionaryDatum params) const
Return connections between pairs of neurons.
bool synapse_prototype_in_use(synindex syn_id)
Checks, whether connections of the given type were created.
double double_t
Double precision floating point numbers.
Definition: nest.h:93
tVSConnector connections_
A 3-dim structure to hold the Connector objects which in turn hold the connection information...
Definition: connection_manager.h:171
unsigned char synindex
Unsigned char type for enumerations of synapse types.
Definition: nest.h:115
DictionaryDatum get_prototype_status(synindex syn_id) const
Default types used by the NEST kernel.
size_t get_num_connections() const
Make sure that the connection counters are up-to-date and return the total number of connections in t...
std::vector< ConnectorModel * > pristine_prototypes_
The list of clean synapse prototypes.
Definition: connection_manager.h:157
void delete_connections_()
Base class for all NEST network objects.
Definition: node.h:96
const Time get_min_delay() const
const Name p("p")
current release probability (Tsodyks2_connection)
Definition: nest_names.h:218
Definition: connector_model.h:38
bool has_user_prototypes() const
Definition: connection_manager.h:210
int_t thread
Thread index type.
Definition: nest.h:133
long long_t
Integer number with at least 32 bit.
Definition: nest.h:96
const double e
Definition: numerics.cpp:62
Exception to be thrown if the specified Synapse type does not exist.
Definition: exceptions.h:144