InitalCommit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user