29GenomeImplementation::GenomeImplementation()
31 genetic::Class< GenomeImplementation >(
40GenomeImplementation::~GenomeImplementation()
45void GenomeImplementation::CacheProteins()
47 mc_registerPlasmid = RotateTo< molecular::Protein* >(
"RegisterPlasmid");
48 mc_fetchPlasmid = RotateTo< molecular::Protein* >(
"FetchPlasmid");
49 mc_registrationSite = mc_registerPlasmid->GetIdWithoutCreation(
"Plasmid Binding Site");
50 mc_nameSite = mc_fetchPlasmid->GetIdWithoutCreation(
"Name Binding Site");
51 mc_idSite = mc_fetchPlasmid->GetIdWithoutCreation(
"Id Binding Site");
52 mc_fetchSite = mc_fetchPlasmid->GetIdWithoutCreation(
"Return Site");
55StandardDimension GenomeImplementation::RegisterPlasmid(
Plasmid* toRegister)
58 return PlasmidPerspective::InvalidId())
59 StandardDimension ret = PlasmidPerspective::InvalidId();
61 mc_registerPlasmid->RotateTo(mc_registrationSite)->Bind(ChemicalCast< chemical::Substance* >(toRegister));
64 ret = toRegister->GetId();
70Plasmid* GenomeImplementation::FetchPlasmid(StandardDimension plasmidId)
74 mc_fetchPlasmid->RotateTo(mc_idSite)->Bind(plasmidId);
75 mc_fetchPlasmid->Activate();
86 mc_fetchPlasmid->RotateTo(mc_nameSite)->Bind(plasmidName);
87 mc_fetchPlasmid->Activate();
#define BIO_SANITIZE(test, success, failure)
virtual Surface * RotateTo(StandardDimension surfaceId)
TranscriptionFactor Genome()