using BaseCellSimulation.Enzyms; using BaseCellSimulation.Enzyms.Lysosome; using System; using System.Collections.Generic; using System.Linq; using System.Resources; using System.Text; using System.Threading.Tasks; namespace BaseCellSimulation { /// /// Recicling center of the cell takes up waste and generates Amino acides and small amout of ATP /// /// /// public class Lysosome : Organell { public readonly List enzyms = new List(); private readonly string name; public Lysosome() : this("Lysosome") { } public Lysosome(string cellname) { name = cellname; enzyms.Add(new Cathepsin()); enzyms.Add(new GenericLysosomalEnzyme()); enzyms.Add(new LysosomalLipase()); enzyms.Add(new LysosomalNuclease()); enzyms.Add(new LysosomalPhosphatase()); } public string getName() { return name; } public void applyChanges(CellRessources Resources, double dt) { foreach (InternalEnzym enzym in enzyms) { enzym.ApplyChanges(Resources, dt); } } public void calculateRate(CellRessources res) { foreach (InternalEnzym enzym in enzyms) { enzym.ComputeRate(res.Res); } } } }