NEST main@caf0ae8
 
Loading...
Searching...
No Matches
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// Includes from nestkernel:
28
29namespace nest
30{
31
36{
37public:
43
44 void
50
51 double
52 get_weight() const
53 {
54 return weight_;
55 }
56
60 void
62 {
64 d.update_value( names::weight, weight_ );
65 }
66
67private:
68 // data members common to all connections
69 double weight_;
70};
71
72} // namespace nest
73
74#endif /* #ifndef COMMON_PROPERTIES_HOM_W_H */
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Class containing the common properties for all synapses with common weight.
Definition common_properties_hom_w.h:36
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties from the values given in dictionary.
Definition common_properties_hom_w.h:61
void get_status(Dictionary &d) const
Definition common_properties_hom_w.h:45
CommonPropertiesHomW()
Definition common_properties_hom_w.h:38
double weight_
Definition common_properties_hom_w.h:69
double get_weight() const
Definition common_properties_hom_w.h:52
Class containing the common properties for all connections of a certain type.
Definition common_synapse_properties.h:50
void get_status(Dictionary &d) const
Get all properties and put them into a dictionary.
Definition common_synapse_properties.cpp:47
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties from the values given in dictionary.
Definition common_synapse_properties.cpp:53
Definition connector_model.h:69
const std::string weight("weight")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33