62 lines
1.6 KiB
C#
62 lines
1.6 KiB
C#
using BaseCellSimulation.Enzyms;
|
|
using BaseCellSimulation.Enzyms.Nucleus;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BaseCellSimulation
|
|
{
|
|
/// <summary>
|
|
/// Cell Core produces RNA uses ATP generates small amount of waste
|
|
/// </summary>
|
|
/// <param name="cellname"></param>
|
|
/// <param name="transcriptionRate"></param>
|
|
/// <param name="atpPerNucloide"></param>
|
|
public class Nucleus : Organell
|
|
{
|
|
public List<InternalEnzym> enzyms = new List<InternalEnzym>();
|
|
|
|
private readonly string name;
|
|
|
|
public Nucleus() : this("Nucleus") { }
|
|
|
|
public Nucleus(string cellname)
|
|
{
|
|
name = cellname;
|
|
enzyms.Add(new DNA_Polymerase_Delta());
|
|
enzyms.Add(new DNMT1());
|
|
enzyms.Add(new HistoneAcetyltransferase());
|
|
enzyms.Add(new HistoneDeacetylase());
|
|
enzyms.Add(new PARP1());
|
|
enzyms.Add(new Topoisomerase_II());
|
|
enzyms.Add(new RNA_Polymerase_II());
|
|
|
|
}
|
|
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|