/// <summary> /// Helper method to check well rights component data. The following are checked: /// <ol> /// <li> Well stations without at least one right are listed. This requires that /// the dataset include well stations.</li> /// <li> Well rights with yield <= 0.0</li> /// <li> Well rights summary for a station is not equal to the well capacity. /// This requires that the dataset include well stations.<li> /// </ol> /// </summary> private void checkWellStationRights(PropList props, System.Collections.IList wer_Vector) { int size = 0; // create elements for the checks and check file string[] header = StateMod_WellRight.getDataHeader(); System.Collections.IList data = new List <object>(); string title = "Well Rights"; // Do the general data validation // using this components data table model StateMod_Data_TableModel tm = new StateMod_WellRight_Data_TableModel(wer_Vector, false); System.Collections.IList @checked = performDataValidation(tm, title); //String [] columnHeader = getDataTableModelColumnHeader( tm ); string[] columnHeader = getColumnHeader(tm); // check Well Station data PropList props_rights = new PropList("Well Rights"); props_rights.add("checkRights=true"); System.Collections.IList wes_Vector = getComponentData(StateMod_DataSet.COMP_WELL_STATIONS); if (wes_Vector != null && wes_Vector.Count > 0) { checkWellStationData(props_rights, wes_Vector); } props_rights = null; // cleanup // Check to make sure the sum of well rights equals the well station // capacity... checkWellRights_CapacityData(); // Since well rights are determined from parcel data, print a list of // well rights that do not have associated yield (decree)... size = 0; if (wer_Vector != null) { size = wer_Vector.Count; } // Do data checks listed in the StateMod_WellRight class // Remove all previous checks from StateMod_Well data.Clear(); data = doSpecificDataChecks(wer_Vector, props); // provides basic header information for this data check table string info = "The following well rights (" + data.Count + " out of " + size + ") have no decree (checked to StateMod file .XX precision).\n" + "Well yield data may not be available."; // create data models for Check file CheckFile_DataModel dm = new CheckFile_DataModel(data, header, title, info, data.Count, size); CheckFile_DataModel gen_dm = new CheckFile_DataModel(@checked, columnHeader, title + " Missing or Invalid Data", "", __gen_problems, size); __check_file.addData(dm, gen_dm); }