public void Add_to_this_line_after_checking_if_this_line_has_empty_entry(IAdd_to_data add_line, int indexCol) { if (!NCBI_official_symbol.Equals(add_line.NCBI_official_symbol_for_data)) { throw new Exception("rowNames do not match"); } if (Columns[indexCol].Equals(Empty_entry)) { Columns[indexCol] = add_line.Value_for_data; } else { throw new Exception("Position already filled"); } }
public int Get_columnIndex(IAdd_to_data add_line) { int columns_length = Columns_length; Colchar_column_line_class column; int columnIndex = -1; for (int indexC = 0; indexC < columns_length; indexC++) { column = Columns[indexC]; if (column.Equal_in_standard_way(add_line)) { columnIndex = indexC; break; } } if (columnIndex == -1) { throw new Exception("column does not exist"); } return(columnIndex); }
public bool Equal_in_standard_way(IAdd_to_data other) { return((this.EntryType.Equals(other.EntryType_for_data)) && (this.Timepoint.Equals(other.Timepoint_for_data)) && (this.SampleName.Equals(other.SampleName_for_data))); }