225 std::string
print_network(
int ,
int, std::string =
"") {
return std::string();}
501 std::deque<histentry>::iterator*
start,
502 std::deque<histentry>::iterator* finish);
674 template <
typename ConcreteNode>
842 template <
typename ConcreteNode>
845 ConcreteNode
const* tp =
dynamic_cast<ConcreteNode const*
>(&
n);
void set_thread(thread)
Store the number of the thread to which the node is assigned.
Definition: node.h:819
size_t index
Unsigned long type for enumerations.
Definition: nest.h:109
Base class for all subnet nodes.
Definition: subnet.h:67
void set_thread_lid(const index)
set thread local index
Definition: node.h:851
const Name receptor_type("receptor_type")
Connection parameters.
Definition: nest_names.h:240
bool is_model_prototype() const
Returns true if node is model prototype.
Definition: node.h:795
index get_gid() const
Return global Network ID.
Definition: node.h:753
Definition: lockptrdatum.h:40
friend class Synapse
Definition: node.h:102
virtual double_t get_K_value(double_t t)
return the Kminus value at t (in ms).
Definition: node.cpp:273
bool buffers_initialized() const
True if buffers have been initialized.
Definition: node.h:592
const Name frozen("frozen")
Node parameter.
Definition: nest_names.h:142
virtual void get_K_values(double_t t, double_t &Kminus, double_t &triplet_Kminus)
write the Kminus and triplet_Kminus values at t (in ms) to the provided locations.
Definition: node.cpp:279
"Callback request event" for use in Device.
Definition: event.h:374
void init_state()
Set state variables to the default values for the model.
Definition: node.cpp:66
bool is_local() const
Returns true if the node is allocated in the local process.
Definition: node.cpp:99
void set_gid_(index)
Set global node id.
Definition: node.h:765
int model_id_
Model ID.
Definition: node.h:693
virtual void set_status(const DictionaryDatum &)=0
Change properties of the node according to the entries in the dictionary.
index lid_
Local element id (within parent).
Definition: node.h:679
DictionaryDatum get_status_base()
Return a dictionary with the node's properties.
Definition: node.cpp:109
virtual size_t num_thread_siblings_() const
Return the number of thread siblings in SiblingContainer.
Definition: node.h:624
virtual port send_test_event(Node &receiving_node, rport receptor_type, synindex syn_id, bool dummy_target)
Send an event to the receiving_node passed as an argument.
Definition: node.cpp:169
Node & operator=(const Node &)
not implemented
virtual bool one_node_per_process() const
Returns true if the node exists only once per process, but does not have proxies on remote threads...
Definition: node.h:729
virtual bool is_subnet() const
Definition: node.cpp:311
virtual void finalize()
Finalize node.
Definition: node.h:286
virtual void calibrate()=0
Re-calculate dependent parameters of the node.
Event for electrical currents.
Definition: event.h:420
long_t rport
Connection port number to distinguish incoming connections, also called receiver port.
Definition: nest.h:147
virtual bool has_proxies() const
Returns true if the node has proxies on remote threads.
Definition: node.h:711
bool frozen_
node shall not be updated if true
Definition: node.h:697
Part of definition of Archiving_Node which is capable of recording and managing a spike history...
bool is_frozen() const
Returns true if node is frozen, i.e., shall not be updated.
Definition: node.h:705
void set_buffers_initialized(bool initialized)
Definition: node.h:594
virtual void get_status(DictionaryDatum &) const =0
Export properties of the node by setting entries in the status dictionary.
index get_thread_lid() const
get thread local index
Definition: node.h:857
virtual bool local_receiver() const
Returns true if the node only receives events from nodes/devices on the same thread.
Definition: node.h:723
virtual Node * clone() const
Virtual copy constructor.
Definition: node.h:119
virtual bool potential_global_receiver() const
Returns true for potential global receivers (e.g.
Definition: node.h:717
virtual void init_state_(Node const &)=0
Private function to initialize the state of a node to model defaults.
void set_subnet_index_(index)
Index into node array in subnet.
Definition: node.h:777
index thread_lid_
Local id of this node in the thread-local vector of nodes.
Definition: node.h:685
index gid_
Global element id (within network).
Definition: node.h:678
void set_model_id(int)
Set the model id.
Definition: node.h:789
Provide logged data through request transmitting reference.
Definition: event.h:563
Definition: nest_time.h:130
void set_status_base(const DictionaryDatum &)
Set status dictionary of a node.
Definition: node.cpp:151
index subnet_index_
Index of node in parent's node array.
Definition: node.h:680
virtual void update(Time const &, const long_t, const long_t)=0
Bring the node from state $t$ to $t+n*dt$.
std::string get_name() const
Return class name.
Definition: node.cpp:83
void init_buffers()
Initialize buffers of a node.
Definition: node.cpp:73
Node()
Definition: node.cpp:37
virtual void get_history(double_t t1, double_t t2, std::deque< histentry >::iterator *start, std::deque< histentry >::iterator *finish)
return the spike history for (t1,t2].
Definition: node.cpp:284
Base class for all Models.
Definition: model.h:48
const Name start("start")
Device parameters.
Definition: nest_names.h:263
virtual void unregister_stdp_connection(double_t)
Unregister a STDP connection.
Definition: node.cpp:187
Subnet * parent_
Pointer to parent.
Definition: node.h:694
void set_frozen_(bool frozen)
Mark node as frozen.
Definition: node.h:667
virtual bool is_proxy() const
Returns true if the node is a proxy node.
Definition: node.h:741
const Name vp("vp")
Node parameter.
Definition: nest_names.h:341
Main administrative interface to the network.
Definition: network.h:135
Event for firing rate information.
Definition: event.h:387
Subnet * get_parent() const
Return pointer to parent subnet.
Definition: node.h:801
index get_subnet_index() const
Return the index to the node in the node array of the parent subnet.
Definition: node.h:759
virtual ~Node()
Definition: node.cpp:63
virtual void register_stdp_connection(double_t)
Register a STDP connection.
Definition: node.cpp:178
virtual DictionaryDatum get_status_dict_()
Return a new dictionary datum .
Definition: node.cpp:104
virtual Node * get_thread_sibling_(index) const
Return the specified member of a SiblingContainer.
Definition: node.h:636
virtual void set_has_proxies(const bool)
Sets has_proxies_ member variable (to switch to global spike detection mode)
Definition: node.cpp:291
long_t port
Connection port number to distinguis outgoing connections.
Definition: nest.h:155
thread get_vp() const
Retrieve the number of the virtual process to which the node is assigned.
Definition: node.h:837
virtual void handle(SpikeEvent &e)
Handle incoming spike events.
Definition: node.cpp:198
static Network * net_
Pointer to global network driver.
Definition: node.h:701
double double_t
Double precision floating point numbers.
Definition: nest.h:93
void set_vp(thread)
Store the number of the virtual process to which the node is assigned.
Definition: node.h:831
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
thread thread_
thread node is assigned to
Definition: node.h:695
int get_model_id() const
Return model ID of the node.
Definition: node.h:783
Request data to be logged/logged data to be sent.
Definition: event.h:486
static Network * network()
Return pointer to network driver class.
Definition: node.h:813
virtual void set_local_receiver(const bool)
Sets local_receiver_ member variable (to switch to global spike detection mode)
Definition: node.cpp:296
unsigned char synindex
Unsigned char type for enumerations of synapse types.
Definition: nest.h:115
thread get_thread() const
Retrieve the number of the thread to which the node is assigned.
Definition: node.h:825
void set_parent_(Subnet *)
Set pointer to parent subnet.
Definition: node.h:807
const Name n("n")
Number of synaptic release sites (int >=0) (Tsodyks2_connection)
Definition: nest_names.h:202
thread vp_
virtual process node is assigned to
Definition: node.h:696
Default types used by the NEST kernel.
Event for spike information.
Definition: event.h:320
const thread invalid_thread_
Value for invalid connection port number.
Definition: nest.h:138
virtual void init_buffers_()=0
Private function to initialize the buffers of a node.
Base class for all NEST network objects.
Definition: node.h:96
bool buffers_initialized_
Buffers have been initialized.
Definition: node.h:698
virtual Node * get_thread_sibling_safe_(index) const
Return specified member of a SiblingContainer, with access control.
Definition: node.h:642
virtual std::string print_network(int, int, std::string="")
Prints out one line of the tree view of the network.
Definition: node.h:225
Schedule update of Nodes and Events during simulation.
Definition: scheduler.h:66
virtual void event_hook(DSSpikeEvent &)
Modify Event object parameters during event delivery.
Definition: node.cpp:301
const Name c("c")
Specific to Izhikevich 2003.
Definition: nest_names.h:62
const ConcreteNode & downcast(const Node &)
Auxiliary function to downcast a Node to a concrete class derived from Node.
Definition: node.h:843
index get_lid() const
Return local node ID.
Definition: node.h:747
int_t thread
Thread index type.
Definition: nest.h:133
void set_lid_(index)
Set local id, relative to the parent subnet.
Definition: node.h:771
long long_t
Integer number with at least 32 bit.
Definition: nest.h:96
virtual bool is_off_grid() const
Returns true if the node if it sends/receives -grid events This is used to discriminate between diffe...
Definition: node.h:735
const double e
Definition: numerics.cpp:62
Model & get_model_() const
Definition: node.cpp:91
Proxy Node to provide Nodes, where there aren't real Nodes to be.
Definition: proxynode.h:45
"Callback request event" for use in Device.
Definition: event.h:465
Event for electrical conductances.
Definition: event.h:616