Develop Biology
The language of life
Plasmid.cpp
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) 2021 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#include "bio/genetic/Plasmid.h"
25
26namespace bio {
27namespace genetic {
28
29Plasmid::~Plasmid()
30{
31
32}
33
35{
36 return GetProtein();
37}
38
40{
41 return GetProtein();
42}
43
44void Plasmid::CtorCommon()
45{
46 m_protein = new RNAPolymerase(this);
47}
48
50{
51 std::string rnaName = "mRNA_";
52 rnaName += GetName();
53 RNA* ret = new RNA(rnaName.c_str());
54 molecular::Protein* polymerase = ForceCast< molecular::Protein* >(GetRNAPolymerase()->Clone());
55 StandardDimension bindingSite = polymerase->GetIdFromName("RNA Binding Site");
56 polymerase->RecruitChaperones(expressor);
57 polymerase->Fold();
58 polymerase->RotateTo(bindingSite)->Bind(ret);
59 polymerase->Activate();
60 polymerase->RotateTo(bindingSite)->ReleaseAll();
61 delete polymerase;
62 return ret;
63}
64
65} //genetic namespace
66} //bio namespace
virtual RNA * TranscribeFor(Expressor *expressor) const
Definition: Plasmid.cpp:49
virtual molecular::Protein * GetRNAPolymerase()
Definition: Plasmid.cpp:34
virtual Protein * GetProtein()
Definition: DNA.cpp:46
Protein * m_protein
Definition: DNA.h:105
virtual Surface * RotateTo(StandardDimension surfaceId)
Definition: Molecule.cpp:48
virtual Code Activate()
Definition: Protein.cpp:58
virtual Code RecruitChaperones(Vesicle *environment)
Definition: Protein.cpp:48
virtual Code Fold()
Definition: Protein.cpp:39
T Bind(T toBind, BondType bondType=bond_type::Temporary())
Definition: Surface.h:129
virtual physical::Waves ReleaseAll(BondType bondType=bond_type::Temporary())
Definition: Surface.cpp:207
virtual Wave * Clone() const
Definition: Class.h:89
virtual Id GetIdFromName(Name name)
Definition: Perspective.h:212
Definition: Cell.h:31