NEST  2.6.0,not_revisioned_source_dir@0
common_properties_hom_w.h
Go to the documentation of this file.
1 /*
2  * common_properties_hom_w.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef COMMON_PROPERTIES_HOM_W_H
24 #define COMMON_PROPERTIES_HOM_W_H
25 
26 /* BeginDocumentation
27  Name: static_synapse_hom_w - Static synapse type
28  using homogeneous weight, i.e. all synapses
29  feature the same w.
30 
31  FirstVersion: April 2008
32  Author: Moritz Helias, Susanne Kunkel
33  SeeAlso: synapsedict, static_synapse
34 */
35 
36 
38 
39 namespace nest
40 {
41 
46  {
47  public:
48 
54 
59  {
61  def<double_t>(d, names::weight, weight_);
62  }
63 
64  double_t get_weight() const { return weight_; }
65 
70  {
72  updateValue<double_t>(d, names::weight, weight_);
73  }
74 
75  private:
76 
77  // data members common to all connections
79 
80  };
81 
82 } // namespace nest
83 
84 #endif // COMMON_PROPERTIES_HOM_W_H
void set_status(const DictionaryDatum &d, ConnectorModel &cm)
Set properties from the values given in dictionary.
Definition: common_synapse_properties.cpp:42
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
double_t get_weight() const
Definition: common_properties_hom_w.h:64
const Name weight("weight")
Connection parameters.
Definition: nest_names.h:344
void get_status(DictionaryDatum &d) const
Get all properties and put them into a dictionary.
Definition: common_properties_hom_w.h:58
CommonPropertiesHomW()
Default constructor.
Definition: common_properties_hom_w.h:53
double double_t
Double precision floating point numbers.
Definition: nest.h:93
Class containing the common properties for all connections of a certain type.
Definition: common_synapse_properties.h:44
void get_status(DictionaryDatum &d) const
Get all properties and put them into a dictionary.
Definition: common_synapse_properties.cpp:40
void set_status(const DictionaryDatum &d, ConnectorModel &cm)
Set properties from the values given in dictionary.
Definition: common_properties_hom_w.h:69
Definition: connector_model.h:38
Class containing the common properties for all synapses with common weight.
Definition: common_properties_hom_w.h:45
double_t weight_
Definition: common_properties_hom_w.h:78