BioDynaMo  v1.03.57-cebe047f
param.cc
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 //
3 // Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4 // BioDynaMo collaboration. All Rights Reserved.
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // See the LICENSE file distributed with this work for details.
10 // See the NOTICE file distributed with this work for additional information
11 // regarding copyright ownership.
12 //
13 // -----------------------------------------------------------------------------
14 
15 #include "neuroscience/param.h"
16 #include "core/util/cpptoml.h"
17 
18 namespace bdm {
19 namespace neuroscience {
20 
21 const ParamGroupUid Param::kUid = ParamGroupUidGenerator::Get()->NewUid();
22 
23 void Param::AssignFromConfig(const std::shared_ptr<cpptoml::table>& config) {
25  "neuroscience.neurite_default_actual_length");
27  "neuroscience.neurite_default_density");
29  "neuroscience.neurite_default_diameter");
31  "neuroscience.neurite_default_spring_constant");
33  "neuroscience.neurite_default_adherence");
35  "neuroscience.neurite_default_tension");
37  "neuroscience.neurite_min_length");
39  "neuroscience.neurite_max_length");
41  "neuroscience.neurite_minimial_bifurcation_length");
42 }
43 
44 } // namespace neuroscience
45 } // namespace bdm
BDM_ASSIGN_CONFIG_VALUE
#define BDM_ASSIGN_CONFIG_VALUE(variable, config_key)
Definition: cpptoml.h:18
bdm::neuroscience::Param::neurite_default_tension
double neurite_default_tension
Definition: param.h:80
bdm
Definition: agent.cc:39
bdm::neuroscience::Param::neurite_default_diameter
double neurite_default_diameter
Definition: param.h:56
cpptoml.h
bdm::ParamGroupUid
uint64_t ParamGroupUid
Definition: param_group.h:26
bdm::neuroscience::Param::neurite_max_length
double neurite_max_length
Definition: param.h:96
bdm::neuroscience::Param::neurite_default_density
double neurite_default_density
Definition: param.h:48
bdm::neuroscience::Param::AssignFromConfig
void AssignFromConfig(const std::shared_ptr< cpptoml::table > &) override
Assign values from config file to variables.
Definition: param.cc:23
bdm::neuroscience::Param::neurite_min_length
double neurite_min_length
Definition: param.h:88
param.h
bdm::neuroscience::Param::neurite_default_actual_length
double neurite_default_actual_length
Definition: param.h:40
bdm::neuroscience::Param::neurite_minimial_bifurcation_length
double neurite_minimial_bifurcation_length
Definition: param.h:105
bdm::neuroscience::Param::neurite_default_adherence
double neurite_default_adherence
Definition: param.h:72
bdm::neuroscience::Param::neurite_default_spring_constant
double neurite_default_spring_constant
Definition: param.h:64
bdm::ParamGroupUidGenerator::Get
static ParamGroupUidGenerator * Get()
Definition: param_group.cc:20
bdm::ParamGroupUidGenerator::NewUid
ParamGroupUid NewUid()
Definition: param_group.cc:27