44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace BaseCellSimulation.Enzyms.Cytosol.Ribosomen
|
||
{
|
||
/*
|
||
* Faktor Aufgabe Energieverbrauch
|
||
* IF (Initiation Factors) Ribosom startet Translation 1 GTP
|
||
* EF-Tu, EF-G (Elongation) tRNA Positionierung, Translokation 1–2 GTP pro Zyklus
|
||
* RF (Release Factors) Beendet Translation an Stoppcodon 1 GTP
|
||
*/
|
||
internal class TranslationFactor : InternalEnzym
|
||
{
|
||
public enum FactorType { Initiation, Elongation, Termination }
|
||
public FactorType Type { get; }
|
||
|
||
public double TranslationSpeed;
|
||
|
||
public TranslationFactor(FactorType type)
|
||
{
|
||
Type = type;
|
||
Km = 0.1;
|
||
Vmax = 2.0;
|
||
}
|
||
|
||
public override void ComputeRate(Resources res)
|
||
{
|
||
Michaelis_Menten(res.Energy.GTP);
|
||
}
|
||
|
||
public override void ApplyChanges(CellRessources res, double dt)
|
||
{
|
||
double used = Math.Min(rate * dt, res.Res.Energy.GTP);
|
||
|
||
res.Res.Energy.GTP -= used;
|
||
res.Res.Energy.GDP += used;
|
||
TranslationSpeed = used;
|
||
}
|
||
}
|
||
}
|