BioDynaMo  v1.05.120-25dc9790
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::neuroscience::Param::neurite_min_length
real_t neurite_min_length
Definition: param.h:89
bdm::neuroscience::Param::neurite_max_length
real_t neurite_max_length
Definition: param.h:97
bdm::neuroscience::Param::neurite_default_tension
real_t neurite_default_tension
Definition: param.h:81
BDM_ASSIGN_CONFIG_VALUE
#define BDM_ASSIGN_CONFIG_VALUE(variable, config_key)
Definition: cpptoml.h:18
bdm::neuroscience::Param::neurite_minimial_bifurcation_length
real_t neurite_minimial_bifurcation_length
Definition: param.h:106
bdm::neuroscience::Param::neurite_default_diameter
real_t neurite_default_diameter
Definition: param.h:57
bdm
Definition: agent.cc:39
bdm::neuroscience::Param::neurite_default_adherence
real_t neurite_default_adherence
Definition: param.h:73
cpptoml.h
bdm::ParamGroupUid
uint64_t ParamGroupUid
Definition: param_group.h:26
bdm::neuroscience::Param::neurite_default_spring_constant
real_t neurite_default_spring_constant
Definition: param.h:65
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_default_density
real_t neurite_default_density
Definition: param.h:49
param.h
bdm::ParamGroupUidGenerator::Get
static ParamGroupUidGenerator * Get()
Definition: param_group.cc:20
bdm::neuroscience::Param::neurite_default_actual_length
real_t neurite_default_actual_length
Definition: param.h:41
bdm::ParamGroupUidGenerator::NewUid
ParamGroupUid NewUid()
Definition: param_group.cc:27