InitalCommit

This commit is contained in:
WyanMueller
2025-11-16 10:30:26 +01:00
parent 8b0b73bba8
commit d2e409d10f
73 changed files with 3209 additions and 0 deletions
+61
View File
@@ -0,0 +1,61 @@
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
{
/// <summary>
/// Recicling center of the cell takes up waste and generates Amino acides and small amout of ATP
/// </summary>
/// <param name="cellname"></param>
/// <param name="decayRate"></param>
public class Lysosome : Organell
{
public readonly List<InternalEnzym> enzyms = new List<InternalEnzym>();
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);
}
}
}
}