using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BaseCellSimulation.Enzyms.Lysosome { public class LysosomalPhosphatase : InternalEnzym { public LysosomalPhosphatase() { Vmax = 0.1; Km = 0.05; } public override void ComputeRate(Resources res) { Michaelis_Menten(res.PhosphorylatedSubstrates); } public override void ApplyChanges(CellRessources res, double dt) { double degraded = rate * dt; degraded = Math.Min(degraded, res.Res.PhosphorylatedSubstrates); res.Res.PhosphorylatedSubstrates -= degraded; res.Res.Phosphate.Pi += degraded; res.Res.Phosphate.PPi += degraded * 0.1; // falls Pyrophosphat entsteht } } }