private void Initialize(GeneticCodeRow row) { this.MaxParameterfulFunctionsInDNA = row.MaxParameterfulFunctionsInDNA; this.CodonLength = row.CodonLength; this.MaxRecursionLevel = row.MaxRecursionLevel; this.MaximumFunctionInputsUsed = row.MaximumFunctionInputsUsed; this.GeneticCodePrimaryKey = row.PrimaryKey; this.Name = row.Name; }
private void Initialize(int geneticCodePrimaryKey) { this.GeneticCodePrimaryKey = geneticCodePrimaryKey; var geneticCodeRow = new GeneticCodeRow(); Qry.SelectAllFrom(geneticCodeRow) .Where(geneticCodeRow.PrimaryKeyColumn, this.GeneticCodePrimaryKey) .GoAndExtract(ref geneticCodeRow); this.Initialize(row: geneticCodeRow); }
/// <summary> /// Initializes the Genetic Code from the given unique genetic code name of it is not null. /// </summary> /// <param name="geneticCodeName"></param> private void Initialize(string geneticCodeName) { this.Name = geneticCodeName; if (this.Name != null) { var geneticCodeRow = new GeneticCodeRow(); Qry.SelectAllFrom(geneticCodeRow) .Where(geneticCodeRow.NameColumn, this.Name) .GoAndExtract(ref geneticCodeRow); this.Initialize(row: geneticCodeRow); } }