Exemplo n.º 1
0
 /// <summary>
 /// Creates a row in the Parameter table.
 /// </summary>
 /// <param name="parameterType">The Parameter Type of the Parameter.</param>
 /// <param name="parentFunction">The function to which the Parameter belongs.</param>
 /// <param name="parameterIndex">The index of the Parameter in the parent Function.</param>
 /// <param name="geneticCode">The GeneticCode to which this Function applies.</param>
 /// <param name="codonConverterIdentifier">Only used if the ParameterType is ParameterType.ConvertedCodon. The ICodonConverter as identified by this ICodonConverterIdentifier will be used to convert an ICodon and will then be passed to the IArgument that this IParameter defines.</param>
 public static Row ToRow(StrongEnums.ParameterType parameterType, System.Int32 parentFunction, System.Int32 parameterIndex, System.Int32 geneticCode, StrongEnums.CodonConverterIdentifier codonConverterIdentifier = null)
 {
     return new Row(global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.ParameterTable, new Column[] { global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.ParameterTable.ParameterType, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.ParameterTable.ParentFunction, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.ParameterTable.ParameterIndex, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.ParameterTable.GeneticCode, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.ParameterTable.CodonConverterIdentifier }, new object[] { parameterType, parentFunction, parameterIndex, geneticCode, codonConverterIdentifier });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a row in the Codon table.
 /// </summary>
 /// <param name="name">The CodonIdentifier of this Codon.</param>
 /// <param name="geneticCode">The GeneticCode to which this Codon applies.</param>
 /// <param name="functionPair">The pair of Functions for which this Codon encodes.</param>
 /// <param name="codonType">The type of Codon.</param>
 public static Row ToRow(System.String name, System.Int32 geneticCode, System.Int32 functionPair, StrongEnums.CodonType codonType)
 {
     return new Row(global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.CodonTable, new Column[] { global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.CodonTable.Name, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.CodonTable.GeneticCode, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.CodonTable.FunctionPair, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.CodonTable.CodonType }, new object[] { name, geneticCode, functionPair, codonType });
 }
 /// <summary>
 /// Creates a row in the FunctionRegistry table.
 /// </summary>
 /// <param name="theFunction">The Function to which the Registry is available.</param>
 /// <param name="registry">The identifier of the Registry that is available to the Function.</param>
 /// <param name="geneticCode">The GeneticCode to which this Function applies.</param>
 public static Row ToRow(System.Int32 theFunction, StrongEnums.RegistryIdentifier registry, System.Int32 geneticCode)
 {
     return new Row(global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.FunctionRegistryTable, new Column[] { global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.FunctionRegistryTable.TheFunction, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.FunctionRegistryTable.Registry, global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongTables.DM.FunctionRegistryTable.GeneticCode }, new object[] { theFunction, registry, geneticCode });
 }