NEST main@f146f75
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
29#include "nest_names.h"
30
31namespace nest
32{
33
38{
39public:
45
46 void
52
53 double
54 get_weight() const
55 {
56 return weight_;
57 }
58
62 void
64 {
66 d.update_value( names::weight, weight_ );
67 }
68
69private:
70 // data members common to all connections
71 double weight_;
72};
73
74} // namespace nest
75
76#endif /* #ifndef COMMON_PROPERTIES_HOM_W_H */
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties from the values given in dictionary.
Definition common_properties_hom_w.h:63
void get_status(Dictionary &d) const
Definition common_properties_hom_w.h:47
CommonPropertiesHomW()
Definition common_properties_hom_w.h:40
double weight_
Definition common_properties_hom_w.h:71
double get_weight() const
Definition common_properties_hom_w.h:54
void get_status(Dictionary &d) const
Get all properties and put them into a dictionary.
Definition common_synapse_properties.cpp:46
CommonSynapseProperties()
Standard constructor.
Definition common_synapse_properties.cpp:36
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties from the values given in dictionary.
Definition common_synapse_properties.cpp:52
Definition connector_model.h:69
const std::string weight("weight")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33