libbio
Loading...
Searching...
No Matches
Potential.h
Go to the documentation of this file.
1/*
2 * This file is a part of the Biology project by eons LLC.
3 * Biology (aka Develop Biology) is a framework for approaching software
4 * development from a natural sciences perspective.
5 *
6 * Copyright (C) 2026 Séon O'Shannon & eons LLC
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
12 *
13 * This program 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 Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include <cstddef>
25
33
34namespace bio {
35namespace neural {
36
37class StemCell;
38
49 public chemical::Class< Potential >,
50 public chemical::EnvironmentDependent< StemCell >
51{
52public:
57
60 filter::Neural())
61
66
71 virtual unsigned int GetPotential() const;
72
77 virtual void SetPotential(unsigned int potential);
78
83
88
93
98 virtual void SetReset(bool should);
99
103 virtual Pointer< molecular::Protein > GetResetProtein();
104
109 virtual void SetResetProtein(Pointer< molecular::Protein > protein);
110
116
125
140 virtual double GetPotentialF() const;
141
148 virtual void SetPotentialF(double potential);
149
154 virtual void IncrementPotentialF(double delta);
155
168 virtual unsigned int GetInfluences() const;
169
174 virtual void SetInfluences(unsigned int influences);
175
180
185
192 virtual Pointer< const physical::Symmetry > Spin() const;
193
200 virtual Code Reify(Pointer< const physical::Symmetry > symmetry);
201
207 void CommonConstructor();
208
213 double mValue;
214
219 unsigned int mInfluences;
220
225
229 Pointer< molecular::Protein > mResetProtein;
230};
231
232} //neural namespace
233} //bio namespace
#define BIO_DISAMBIGUATE_ALL_CLASS_METHODS(ns, caller)
Definition ClassMethodMacros.h:112
unsigned int influences
Definition Potential.cpp:42
#define BIO_DEFAULT_IDENTIFIABLE_CONSTRUCTORS_WITH_COMMON_CONSTRUCTOR(ns, class,...)
Definition chemical/macro/ConstructorMacros.h:65
Definition Pointer.h:115
Definition chemical/common/Class.h:52
Definition EnvironmentDependent.h:43
Definition Potential.h:51
bool mShouldReset
Definition Potential.h:224
double mValue
Definition Potential.h:213
virtual void SetPotentialF(double potential)
Definition Potential.cpp:118
virtual void IncrementPotentialF(double delta)
Definition Potential.cpp:123
Pointer< molecular::Protein > mResetProtein
Definition Potential.h:229
virtual void SetInfluences(unsigned int influences)
Definition Potential.cpp:133
virtual unsigned int GetPotential() const
Definition Potential.cpp:93
virtual void DecrementPotential()
Definition Potential.cpp:108
virtual unsigned int GetInfluences() const
Definition Potential.cpp:128
virtual void IncrementInfluence()
Definition Potential.cpp:138
virtual void DecrementInfluence()
Definition Potential.cpp:143
virtual Code Reset()
Definition Potential.cpp:186
virtual void SetReset(bool should)
Definition Potential.cpp:156
virtual void IncrementPotential()
Definition Potential.cpp:103
virtual void SetEnvironment(Pointer< StemCell > environment)
Definition Potential.cpp:176
virtual void SetResetProtein(Pointer< molecular::Protein > protein)
Definition Potential.cpp:166
virtual Pointer< const physical::Symmetry > Spin() const
Definition Potential.cpp:59
unsigned int mInfluences
Definition Potential.h:219
virtual Pointer< molecular::Protein > GetResetProtein()
Definition Potential.cpp:161
virtual double GetPotentialF() const
Definition Potential.cpp:113
void CommonConstructor()
Definition Potential.cpp:46
virtual bool ShouldReset() const
Definition Potential.cpp:151
virtual void SetPotential(unsigned int potential)
Definition Potential.cpp:98
virtual Code Reify(Pointer< const physical::Symmetry > symmetry)
Definition Potential.cpp:72
Definition StemCell.h:47
Definition FinalCell.h:29