Develop Biology
The language of life
Class.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) 2022 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
27
28namespace bio {
29namespace cellular {
30
35 public physical::Wave
36{
37public:
39 :
40 m_peakExcitation(&physical::Periodic::Peak)
41 {
42 Modulate(m_peakExcitation);
43 }
44
46 {
47 }
48
49 virtual Properties GetProperties() const
50 {
52 ret.push_back(property::Linear());
53 return ret;
54 }
55
56protected:
58 Code) m_peakExcitation;
59};
60
62
69template < typename T >
70class Class :
71 public genetic::Class< T >,
72 virtual public physical::Periodic,
73 virtual public molecular::Vesicle
74{
75public:
76
78 T)
79
80
85 Class(
86 T* object,
88 Filter filter = filter::Default())
89 :
90 genetic::Class< T >(
91 object,
93 filter
94 )
95 {
96
97 }
98
106 Class(
107 T* object,
108 Name name,
110 Filter filter = filter::Default(),
111 TimeUS interval = GetDefaultInterval())
112 :
113 genetic::Class< T >(
114 object,
115 name,
117 filter
118 )
119 {
121 }
122
130 Class(
131 T* object,
132 StandardDimension id,
134 Filter filter = filter::Default(),
135 TimeUS interval = GetDefaultInterval())
136 :
137 genetic::Class< T >(
138 object,
139 id,
141 filter
142 )
143 {
145 }
146
147
151 virtual ~Class()
152 {
153
154 }
155
156 Code Peak()
157 {
159 }
160
161};
162
163} //cellular namespace
164} //bio namespace
void Initialize(ByteStreams args)
Definition: VirtualBase.cpp:40
physical::Perspective< StandardDimension > * perspective
Definition: Class.h:87
BIO_DISAMBIGUATE_ALL_CLASS_METHODS(genetic, T) Class(T *object
BIO_EXCITATION_CLASS(physical::Periodic, Code) m_peakExcitation
virtual Properties GetProperties() const
Definition: Class.h:49
static Properties GetClassProperties()
virtual Code Attenuate(const physical::Wave *other)
Definition: LinearMotif.h:472
physical::Perspective< StandardDimension > Filter filter
Definition: Class.h:57
Class(Periodic *object, Symmetry *symmetry=NULL)
Definition: Class.h:46
virtual Code Peak()
Definition: Periodic.h:84
virtual Wave * Modulate(Wave *signal)
Definition: Wave.cpp:91
static PeakCarrierWave g_peakCarrierWave
Definition: Class.h:61
Filter Default()
Property Linear()
Property Periodic()
Definition: Cell.h:31
const char * Name
Definition: Types.h:46
uint8_t Properties
Definition: Types.h:58
uint32_t TimeUS
Definition: Types.h:74