WWErosionResultData.java [src/java/d/util] Revision: default  Date:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package d.util;

import data.table.Table;
import data.table.column.ColumnDouble;
import data.table.column.ColumnString;

/**
 *
 * @author <a href="mailto:shaun.case@colostate.edu">Shaun Case</a>
 */
public class WWErosionResultData extends Table {

  public static final String CFACTOR = "aoa_cfactor";
  public static final String CFACTOR_PCT = "aoa_cfactor_percent";
  public static final String WIND_EP = "aoa_wind_ep";
  public static final String WATER_EP = "aoa_water_ep";
  public static final String AOA_AREA = "aoa_area";
  public static final String AOA_IFACTOR = "aoa_ifactor";
  public static final String AOA_TFACTOR = "aoa_tfactor"; //Assume this is the water tfactor for results.
  public static final String AOA_KFACTOR = "aoa_kfact"; //Assume this is the water kfactor for results.
  public static final String DOM_WIND_COKEY = "aoa_dom_wind_comp";
  public static final String DOM_WIND_COMPNAME = "aoa_dom_wind_compname";
  public static final String WIND_IFACTOR = "aoa_wind_ifactor";
  public static final String WIND_TFACTOR = "aoa_wind_tfactor";
  public static final String DOM_WIND_COMPONENT_AREA_PERCENT = "aoa_dom_wind_comp_area_pct";
  public static final String DOM_WIND_COMPONENT_AREA = "aoa_dom_wind_comp_area";
  public static final String DOM_WIND_COMPONENT_SAND = "aoa_dom_wind_comp_sand";
  public static final String DOM_WIND_COMPONENT_CLAY = "aoa_dom_wind_comp_clay";
  public static final String DOM_WATER_COKEY = "aoa_dom_water_comp";
  public static final String DOM_WATER_COMPNAME = "aoa_dom_water_compname";
  public static final String DOM_WATER_COMPONENT_SAND = "aoa_dom_water_comp_sand";
  public static final String DOM_WATER_COMPONENT_CLAY = "aoa_dom_water_comp_clay";
  public static final String WATER_LSFACTOR = "aoa_water_lsfactor";
  public static final String WATER_TFACTOR = "aoa_water_tfactor";
  //public static final String WATER_IFACTOR = "aoa_water_ifactor";
  public static final String WATER_KFACTOR = "aoa_water_kfactor";
  public static final String DOM_WATER_COMPONENT_AREA_PERCENT = "aoa_dom_water_comp_area_pct";
  public static final String DOM_WATER_COMPONENT_AREA = "aoa_dom_water_comp_area";
  public static final String CFACTOR_SOURCE = "aoa_cfactor_source";

  //  Version 3.0 WEPOT fields
  public static final String WEIGHTED_AVG_WATER_EP = "aoa_weighted_avg_water_ep";
  public static final String HEIGHEST_WATER_EP = "aoa_heighest_water_ep";
  public static final String HEIGHEST_WATER_EP_COKEY = "aoa_heighest_water_ep_comp";
  public static final String HEIGHEST_WATER_EP_COMPNAME = "aoa_heighest_water_ep_compname";
  public static final String HEIGHEST_WATER_EP_LSFACTOR = "aoa_heighest_water_ep_lsfactor";
  public static final String HEIGHEST_WATER_EP_TFACTOR = "aoa_heighest_water_ep_tfactor";
  public static final String HEIGHEST_WATER_EP_KFACTOR = "aoa_heighest_water_ep_kfactor";
  public static final String HEIGHEST_WATER_EP_AREA_PERCENT = "aoa_heighest_water_ep_comp_area_pct";
  public static final String HEIGHEST_WATER_EP_AREA = "aoa_heighest_water_ep_comp_area";

  public static final String WEIGHTED_AVG_WIND_EP = "aoa_weighted_avg_wind_ep";
  public static final String HEIGHEST_WIND_EP = "aoa_heighest_wind_ep";
  public static final String HEIGHEST_WIND_EP_COKEY = "aoa_heighest_wind_ep_comp";
  public static final String HEIGHEST_WIND_EP_COMPNAME = "aoa_heighest_wind_ep_compname";
  public static final String HEIGHEST_WIND_EP_IFACTOR = "aoa_heighest_wind_ep_ifactor";
  public static final String HEIGHEST_WIND_EP_TFACTOR = "aoa_heighest_wind_ep_tfactor";
  public static final String HEIGHEST_WIND_EP_AREA_PERCENT = "aoa_heighest_wind_ep_comp_area_pct";
  public static final String HEIGHEST_WIND_EP_AREA = "aoa_heighest_wind_ep_comp_area";

  private static final String[] AOA_AREA_DATA = {AOA_AREA, "Computed area of the AoA shape.", "Acres", "%.2f"};
  private static final String[] CFACTOR_DATA = {CFACTOR, "Computed cfactor of the centroid for the area of interest shape provided.", "Ratio", "%.5f"};
  private static final String[] CFACTOR_PCT_DATA = {CFACTOR_PCT, "Computed cfactor of the centroid for the area of interest shape provided.", "Percent", "%.3f"};
  private static final String[] WIND_EP_DATA = {WIND_EP, "Calculated wind erosion potential for the aera of interest.", null, "%.3f"};
  private static final String[] WATER_EP_DATA = {WATER_EP, "Calculated water erosion potential for the area of interest.", null, "%.3f"};
  private static final String[] AOA_TFACTOR_DATA = {AOA_TFACTOR, "Soil loss tolerance factor. The maximum amount of erosion at which the quality of a soil as a medium for plant growth can be maintained", null, "%.2f"};
  private static final String[] AOA_IFACTOR_DATA = {AOA_IFACTOR, "A value in tons/acre/year that is a factor in calculating soil loss by wind. The values are acquired from WEG", "tons/acre/year", "%.2f"};
  private static final String[] AOA_KFACTOR_DATA = {AOA_KFACTOR, "An erodibility factor which quantifies the susceptibility of soil particles to detachment by water", null, "%.2f"};
  private static final String[] DOM_WIND_COKEY_DATA = {DOM_WIND_COKEY, "Dominant wind erosion component key value."};
  private static final String[] DOM_WIND_COMPNAME_DATA = {DOM_WIND_COMPNAME, "Dominant wind erosion component name."};
  private static final String[] WIND_IFACTOR_DATA = {WIND_IFACTOR, "A value in tons/acre/year that is a factor in calculating soil loss by wind. The values are acquired from WEG", "tons/acre/year", "%.2f"};
  private static final String[] WIND_TFACTOR_DATA = {WIND_TFACTOR, "Soil loss tolerance factor. The maximum amount of erosion at which the quality of a soil as a medium for plant growth can be maintained", null, "%.2f"};
  private static final String[] DOM_WIND_COMP_AREA_PCT_DATA = {DOM_WIND_COMPONENT_AREA_PERCENT, "Dominant wind erosion component area percentage.", "Percent", "%.2f"};
  private static final String[] DOM_WIND_COMPONENT_AREA_DATA = {DOM_WIND_COMPONENT_AREA, "Dominant wind erosion component area.", "Acres", "%.2f"};
  private static final String[] DOM_WIND_COMPONENT_SAND_DATA = {DOM_WIND_COMPONENT_SAND, "Dominant wind erosion component sand percentage.", "Percent", "%.2f"};
  private static final String[] DOM_WIND_COMPONENT_CLAY_DATA = {DOM_WIND_COMPONENT_CLAY, "Dominant wind erosion component clay percentage.", "Percent", "%.2f"};

  private static final String[] DOM_WATER_COKEY_DATA = {DOM_WATER_COKEY, "Dominant water erosion component key value."};
  private static final String[] DOM_WATER_COMPNAME_DATA = {DOM_WATER_COMPNAME, "Dominant water erosion component name."};
  private static final String[] DOM_WATER_COMPONENT_SAND_DATA = {DOM_WATER_COMPONENT_SAND, "Dominant water erosion component sand percentage.", "Percent", "%.2f"};
  private static final String[] DOM_WATER_COMPONENT_CLAY_DATA = {DOM_WATER_COMPONENT_CLAY, "Dominant water erosion component clay percentage.", "Percent", "%.2f"};

  private static final String[] WATER_LSFACTOR_DATA = {WATER_LSFACTOR, "The calculated distance, using slope_r and lambda, from the point of origin of overland flow to the point where either the slope gradient decreases enough that deposition begins, or the runoff water enters a well-defined channel that may be part of a drainage network or a constructed channel. (Predicting Rainfall Erosion Losses a Guide to Conservation Planning, Agr. Handbook #537, USDA, 1978).", "feet", "%.2f"};
  private static final String[] WATER_TFACTOR_DATA = {WATER_TFACTOR, "Soil loss tolerance factor. The maximum amount of erosion at which the quality of a soil as a medium for plant growth can be maintained", null, "%.2f"};
  // private final String[] WATER_IFACTOR_DATA = {WATER_IFACTOR, "A value in tons/acre/year that is a factor in calculating soil loss by wind. The values are acquired from WEG", "tons/acre/year", "%.2f"};
  private static final String[] WATER_KFACTOR_DATA = {WATER_KFACTOR, "An erodibility factor which quantifies the susceptibility of soil particles to detachment by water", null, "%.2f"};
  private static final String[] DOM_WATER_COMP_AREA_PCT_DATA = {DOM_WATER_COMPONENT_AREA_PERCENT, "Dominant water erosion component area percentage.", "Percent", "%.2f"};
  private static final String[] DOM_WATER_COMPONENT_AREA_DATA = {DOM_WATER_COMPONENT_AREA, "Dominant water erosion component area.", "Acres", "%.2f"};
  private static final String[] CFACTOR_SOURCE_DATA = {CFACTOR_SOURCE, "This key/value pair is present if the c_factor presented was not found through the standard methods using the centroid of the shape.  Possible values are:  'Centroid', 'Mean', 'Spiral Search', and 'Default Zero'"};

  //  Version 3.0 WEPOT fields
  private static final String[] WEIGHTED_AVG_WATER_EP_DATA = {WEIGHTED_AVG_WATER_EP, "Calculated, weighted average water erosion potential for the area of interest.", null, "%.3f"};
  private static final String[] HEIGHEST_WATER_EP_DATA = {HEIGHEST_WATER_EP, "Calculated, heighest average water erosion potential for the area of interest.", null, "%.3f"};
  private static final String[] HEIGHEST_WATER_EP_COKEY_DATA = {HEIGHEST_WATER_EP_COKEY, "Heighest water erosion component key value."};
  private static final String[] HEIGHEST_WATER_EP_COMPNAME_DATA = {HEIGHEST_WATER_EP_COMPNAME, "Heighest water erosion component name."};
  private static final String[] HEIGHEST_WATER_EP_LSFACTOR_DATA = {HEIGHEST_WATER_EP_LSFACTOR, "The calculated distance, using slope_r and lambda, from the point of origin of overland flow to the point where either the slope gradient decreases enough that deposition begins, or the runoff water enters a well-defined channel that may be part of a drainage network or a constructed channel. (Predicting Rainfall Erosion Losses a Guide to Conservation Planning, Agr. Handbook #537, USDA, 1978).", "feet", "%.2f"};
  private static final String[] HEIGHEST_WATER_EP_TFACTOR_DATA = {HEIGHEST_WATER_EP_TFACTOR, "Soil loss tolerance factor. The maximum amount of erosion at which the quality of a soil as a medium for plant growth can be maintained", null, "%.2f"};
  private static final String[] HEIGHEST_WATER_EP_KFACTOR_DATA = {HEIGHEST_WATER_EP_KFACTOR, "An erodibility factor which quantifies the susceptibility of soil particles to detachment by water", null, "%.2f"};
  private static final String[] HEIGHEST_WATER_EP_COMP_AREA_PCT_DATA = {HEIGHEST_WATER_EP_AREA_PERCENT, "Heighest water erosion component area percentage.", "Percent", "%.2f"};
  private static final String[] HEIGHEST_WATER_EP_COMPONENT_AREA_DATA = {HEIGHEST_WATER_EP_AREA, "Heighest water erosion component area.", "Acres", "%.2f"};

  private static final String[] WEIGHTED_AVG_WIND_EP_DATA = {WEIGHTED_AVG_WIND_EP, "Calculated, weighted average wind erosion potential for the area of interest.", null, "%.3f"};
  private static final String[] HEIGHEST_WIND_EP_DATA = {HEIGHEST_WIND_EP, "Calculated, heighest average wind erosion potential for the area of interest.", null, "%.3f"};
  private static final String[] HEIGHEST_WIND_EP_COKEY_DATA = {HEIGHEST_WIND_EP_COKEY, "Heighest wind erosion component key value."};
  private static final String[] HEIGHEST_WIND_EP_COMPNAME_DATA = {HEIGHEST_WIND_EP_COMPNAME, "Heighest wind erosion component name."};
  private static final String[] HEIGHEST_WIND_EP_IFACTOR_DATA = {HEIGHEST_WIND_EP_IFACTOR, "", "", ""};
  private static final String[] HEIGHEST_WIND_EP_TFACTOR_DATA = {HEIGHEST_WIND_EP_TFACTOR, "Soil loss tolerance factor. The maximum amount of erosion at which the quality of a soil as a medium for plant growth can be maintained", null, "%.2f"};
  private static final String[] HEIGHEST_WIND_EP_COMP_AREA_PCT_DATA = {HEIGHEST_WIND_EP_AREA_PERCENT, "Heighest wind erosion component area percentage.", "Percent", "%.2f"};
  private static final String[] HEIGHEST_WIND_EP_COMPONENT_AREA_DATA = {HEIGHEST_WIND_EP_AREA, "Heighest wind erosion component area.", "Acres", "%.2f"};

  public WWErosionResultData() {
    columns.put(DOM_WATER_COKEY, new ColumnString(DOM_WATER_COKEY_DATA));
    columns.put(DOM_WATER_COMPNAME, new ColumnString(DOM_WATER_COMPNAME_DATA));
    columns.put(DOM_WATER_COMPONENT_AREA_PERCENT, new ColumnDouble(DOM_WATER_COMP_AREA_PCT_DATA));
    columns.put(DOM_WATER_COMPONENT_AREA, new ColumnDouble(DOM_WATER_COMPONENT_AREA_DATA));
    columns.put(DOM_WATER_COMPONENT_SAND, new ColumnDouble(DOM_WATER_COMPONENT_SAND_DATA));
    columns.put(DOM_WATER_COMPONENT_CLAY, new ColumnDouble(DOM_WATER_COMPONENT_CLAY_DATA));
    columns.put(DOM_WIND_COKEY, new ColumnString(DOM_WIND_COKEY_DATA));
    columns.put(DOM_WIND_COMPNAME, new ColumnString(DOM_WIND_COMPNAME_DATA));
    columns.put(DOM_WIND_COMPONENT_AREA_PERCENT, new ColumnDouble(DOM_WIND_COMP_AREA_PCT_DATA));
    columns.put(DOM_WIND_COMPONENT_AREA, new ColumnDouble(DOM_WIND_COMPONENT_AREA_DATA));
    columns.put(DOM_WIND_COMPONENT_SAND, new ColumnDouble(DOM_WIND_COMPONENT_SAND_DATA));
    columns.put(DOM_WIND_COMPONENT_CLAY, new ColumnDouble(DOM_WIND_COMPONENT_CLAY_DATA));
    columns.put(CFACTOR, new ColumnDouble(CFACTOR_DATA));
    columns.put(CFACTOR_PCT, new ColumnDouble(CFACTOR_PCT_DATA));
    columns.put(CFACTOR_SOURCE, new ColumnString(CFACTOR_SOURCE_DATA));
    columns.put(AOA_AREA, new ColumnDouble(AOA_AREA_DATA));
    columns.put(AOA_TFACTOR, new ColumnDouble(AOA_TFACTOR_DATA));
    columns.put(AOA_IFACTOR, new ColumnDouble(AOA_IFACTOR_DATA));
    columns.put(AOA_KFACTOR, new ColumnDouble(AOA_KFACTOR_DATA));
    columns.put(WATER_EP, new ColumnDouble(WATER_EP_DATA));
    columns.put(WIND_EP, new ColumnDouble(WIND_EP_DATA));
    columns.put(WEIGHTED_AVG_WATER_EP, new ColumnDouble(WEIGHTED_AVG_WATER_EP_DATA));
    columns.put(HEIGHEST_WATER_EP, new ColumnDouble(HEIGHEST_WATER_EP_DATA));
    columns.put(WIND_IFACTOR, new ColumnDouble(WIND_IFACTOR_DATA));
    columns.put(WIND_TFACTOR, new ColumnDouble(WIND_TFACTOR_DATA));
    columns.put(WATER_LSFACTOR, new ColumnDouble(WATER_LSFACTOR_DATA));
    columns.put(WATER_TFACTOR, new ColumnDouble(WATER_TFACTOR_DATA));
    //columns.put(WATER_IFACTOR, new ColumnDouble(WATER_IFACTOR_DATA));
    columns.put(WATER_KFACTOR, new ColumnDouble(WATER_KFACTOR_DATA));
    columns.put(HEIGHEST_WATER_EP_COKEY, new ColumnString(HEIGHEST_WATER_EP_COKEY_DATA));
    columns.put(HEIGHEST_WATER_EP_COMPNAME, new ColumnString(HEIGHEST_WATER_EP_COMPNAME_DATA));
    columns.put(HEIGHEST_WATER_EP_LSFACTOR, new ColumnDouble(HEIGHEST_WATER_EP_LSFACTOR_DATA));
    columns.put(HEIGHEST_WATER_EP_TFACTOR, new ColumnDouble(HEIGHEST_WATER_EP_TFACTOR_DATA));
    columns.put(HEIGHEST_WATER_EP_KFACTOR, new ColumnDouble(HEIGHEST_WATER_EP_KFACTOR_DATA));
    columns.put(HEIGHEST_WATER_EP_AREA_PERCENT, new ColumnDouble(HEIGHEST_WATER_EP_COMP_AREA_PCT_DATA));
    columns.put(HEIGHEST_WATER_EP_AREA, new ColumnDouble(HEIGHEST_WATER_EP_COMPONENT_AREA_DATA));

    columns.put(WEIGHTED_AVG_WIND_EP, new ColumnDouble(WEIGHTED_AVG_WIND_EP_DATA));
    columns.put(HEIGHEST_WIND_EP, new ColumnDouble(HEIGHEST_WIND_EP_DATA));
    columns.put(HEIGHEST_WIND_EP_COKEY, new ColumnString(HEIGHEST_WIND_EP_COKEY_DATA));
    columns.put(HEIGHEST_WIND_EP_COMPNAME, new ColumnString(HEIGHEST_WIND_EP_COMPNAME_DATA));
    columns.put(HEIGHEST_WIND_EP_IFACTOR, new ColumnDouble(HEIGHEST_WIND_EP_IFACTOR_DATA));
    columns.put(HEIGHEST_WIND_EP_TFACTOR, new ColumnDouble(HEIGHEST_WIND_EP_TFACTOR_DATA));
    columns.put(HEIGHEST_WIND_EP_AREA_PERCENT, new ColumnDouble(HEIGHEST_WIND_EP_COMP_AREA_PCT_DATA));
    columns.put(HEIGHEST_WIND_EP_AREA, new ColumnDouble(HEIGHEST_WIND_EP_COMPONENT_AREA_DATA));

    addRow(); //We need only one row of data here.  Sets default values.
  }

  public void aoa_area(double value) {
    columns.get(AOA_AREA).setValue(value);
  }

  public double aoa_area() {
    return (double) columns.get(AOA_AREA).getValue();
  }

  public void heighest_water_ep_cokey(String value) {
    columns.get(HEIGHEST_WATER_EP_COKEY).setValue(value);
  }

  public void heighest_water_ep_compname(String value) {
    columns.get(HEIGHEST_WATER_EP_COMPNAME).setValue(value);
  }

  public void heighest_water_ep_area_pct(double value) {
    columns.get(HEIGHEST_WATER_EP_AREA_PERCENT).setValue(value);
  }

  public void heighest_water_ep_area(double value) {
    columns.get(HEIGHEST_WATER_EP_AREA).setValue(value);
  }

  public void heighest_water_ep_lsfactor(double value) {
    columns.get(HEIGHEST_WATER_EP_LSFACTOR).setValue(value);
  }

  public void heighest_water_ep_tfactor(double value) {
    columns.get(HEIGHEST_WATER_EP_TFACTOR).setValue(value);
  }

  public void heighest_water_ep_kfactor(double value) {
    columns.get(HEIGHEST_WATER_EP_KFACTOR).setValue(value);
  }

  public String heighest_water_ep_cokey() {
    return (String) columns.get(HEIGHEST_WATER_EP_COKEY).getValue();
  }

  public String heighest_water_ep_compname() {
    return (String) columns.get(HEIGHEST_WATER_EP_COMPNAME).getValue();
  }

  public double heighest_water_ep_area_pct() {
    return (double) columns.get(HEIGHEST_WATER_EP_AREA_PERCENT).getValue();
  }

  public double heighest_water_ep_area() {
    return (double) columns.get(HEIGHEST_WATER_EP_AREA).getValue();
  }

  public double heighest_water_ep_lsfactor() {
    return (double) columns.get(HEIGHEST_WATER_EP_LSFACTOR).getValue();
  }

  public double heighest_water_ep_tfactor() {
    return (double) columns.get(HEIGHEST_WATER_EP_TFACTOR).getValue();
  }

  public double heighest_water_ep_kfactor() {
    return (double) columns.get(HEIGHEST_WATER_EP_KFACTOR).getValue();
  }

  public void heighest_wind_ep_cokey(String value) {
    columns.get(HEIGHEST_WIND_EP_COKEY).setValue(value);
  }

  public void heighest_wind_ep_compname(String value) {
    columns.get(HEIGHEST_WIND_EP_COMPNAME).setValue(value);
  }

  public void heighest_wind_ep_area_pct(double value) {
    columns.get(HEIGHEST_WIND_EP_AREA_PERCENT).setValue(value);
  }

  public void heighest_wind_ep_area(double value) {
    columns.get(HEIGHEST_WIND_EP_AREA).setValue(value);
  }

  public void heighest_wind_ep_ifactor(double value) {
    columns.get(HEIGHEST_WIND_EP_IFACTOR).setValue(value);
  }

  public void heighest_wind_ep_tfactor(double value) {
    columns.get(HEIGHEST_WIND_EP_TFACTOR).setValue(value);
  }

  public String heighest_wind_ep_cokey() {
    return (String) columns.get(HEIGHEST_WIND_EP_COKEY).getValue();
  }

  public String heighest_wind_ep_compname() {
    return (String) columns.get(HEIGHEST_WIND_EP_COMPNAME).getValue();
  }

  public double heighest_wind_ep_area_pct() {
    return (double) columns.get(HEIGHEST_WIND_EP_AREA_PERCENT).getValue();
  }

  public double heighest_wind_ep_area() {
    return (double) columns.get(HEIGHEST_WIND_EP_AREA).getValue();
  }

  public double heighest_wind_ep_ifactor() {
    return (double) columns.get(HEIGHEST_WIND_EP_IFACTOR).getValue();
  }

  public double heighest_wind_ep_tfactor() {
    return (double) columns.get(HEIGHEST_WIND_EP_TFACTOR).getValue();
  }

  public void dom_water_area_pct(double value) {
    columns.get(DOM_WATER_COMPONENT_AREA_PERCENT).setValue(value);
  }

  public double dom_water_area_pct() {
    return (double) columns.get(DOM_WATER_COMPONENT_AREA_PERCENT).getValue();
  }

  public void dom_water_area(double value) {
    columns.get(DOM_WATER_COMPONENT_AREA).setValue(value);
  }

  public double dom_water_area() {
    return (double) columns.get(DOM_WATER_COMPONENT_AREA).getValue();
  }

  public void dom_wind_area_pct(double value) {
    columns.get(DOM_WIND_COMPONENT_AREA_PERCENT).setValue(value);
  }

  public double dom_wind_area_pct() {
    return (double) columns.get(DOM_WIND_COMPONENT_AREA_PERCENT).getValue();
  }

  public void dom_wind_area(double value) {
    columns.get(DOM_WIND_COMPONENT_AREA).setValue(value);
  }

  public double dom_wind_area() {
    return (double) columns.get(DOM_WIND_COMPONENT_AREA).getValue();
  }

  public void dom_water_cokey(String value) {
    columns.get(DOM_WATER_COKEY).setValue(value);
  }

  public String dom_water_cokey() {
    return (String) columns.get(DOM_WATER_COKEY).getValue();
  }

  public void dom_water_compname(String value) {
    columns.get(DOM_WATER_COMPNAME).setValue(value);
  }

  public String dom_water_compname() {
    return (String) columns.get(DOM_WATER_COMPNAME).getValue();
  }

  public void dom_wind_cokey(String value) {
    columns.get(DOM_WIND_COKEY).setValue(value);
  }

  public String dom_wind_cokey() {
    return (String) columns.get(DOM_WIND_COKEY).getValue();
  }

  public void dom_wind_compname(String value) {
    columns.get(DOM_WIND_COMPNAME).setValue(value);
  }

  public String dom_wind_compname() {
    return (String) columns.get(DOM_WIND_COMPNAME).getValue();
  }

  public void dom_water_sand(double value) {
    columns.get(DOM_WATER_COMPONENT_SAND).setValue(value);
  }

  public double dom_water_sand() {
    return (double) columns.get(DOM_WATER_COMPONENT_SAND).getValue();
  }

  public void dom_water_clay(double value) {
    columns.get(DOM_WATER_COMPONENT_CLAY).setValue(value);
  }

  public double dom_water_clay() {
    return (double) columns.get(DOM_WATER_COMPONENT_CLAY).getValue();
  }

  public void dom_wind_sand(double value) {
    columns.get(DOM_WIND_COMPONENT_SAND).setValue(value);
  }

  public double dom_wind_sand() {
    return (double) columns.get(DOM_WIND_COMPONENT_SAND).getValue();
  }

  public void dom_wind_clay(double value) {
    columns.get(DOM_WIND_COMPONENT_CLAY).setValue(value);
  }

  public double dom_wind_clay() {
    return (double) columns.get(DOM_WIND_COMPONENT_CLAY).getValue();
  }

  public void cfactor(double value) {
    columns.get(CFACTOR).setValue(value / 100.0);
    columns.get(CFACTOR_PCT).setValue(value);
  }

  public double cfactor() {
    return (double) columns.get(CFACTOR).getValue();
  }

  public double cfactor_pct() {
    return (double) columns.get(CFACTOR_PCT).getValue();
  }

  public void water_ep(double value) {
    columns.get(WATER_EP).setValue(value);
  }

  public double water_ep() {
    return (double) columns.get(WATER_EP).getValue();
  }

  public void heighest_water_ep(double value) {
    columns.get(HEIGHEST_WATER_EP).setValue(value);
  }

  public double heighest_water_ep() {
    return (double) columns.get(HEIGHEST_WATER_EP).getValue();
  }

  public void heighest_wind_ep(double value) {
    columns.get(HEIGHEST_WIND_EP).setValue(value);
  }

  public double heighest_wind_ep() {
    return (double) columns.get(HEIGHEST_WIND_EP).getValue();
  }

  public void weighted_avg_water_ep(double value) {
    columns.get(WEIGHTED_AVG_WATER_EP).setValue(value);
  }

  public double weighted_avg_water_ep() {
    return (double) columns.get(WEIGHTED_AVG_WATER_EP).getValue();
  }

  public void weighted_avg_wind_ep(double value) {
    columns.get(WEIGHTED_AVG_WIND_EP).setValue(value);
  }

  public double weighted_avg_wind_ep() {
    return (double) columns.get(WEIGHTED_AVG_WIND_EP).getValue();
  }

  public void wind_ep(double value) {
    columns.get(WIND_EP).setValue(value);
  }

  public double wind_ep() {
    return (double) columns.get(WIND_EP).getValue();
  }

  public void wind_ifactor(double value) {
    columns.get(WIND_IFACTOR).setValue(value);
    columns.get(AOA_IFACTOR).setValue(value);
  }

  public double wind_ifactor() {
    return (double) columns.get(WIND_IFACTOR).getValue();
  }

  public void wind_tfactor(double value) {
    columns.get(WIND_TFACTOR).setValue(value);
  }

  public double wind_tfactor() {
    return (double) columns.get(WIND_TFACTOR).getValue();
  }

  public void water_lsfactor(double value) {
    columns.get(WATER_LSFACTOR).setValue(value);
  }

  public double water_lsfactor() {
    return (double) columns.get(WATER_LSFACTOR).getValue();
  }

  public void water_tfactor(double value) {
    columns.get(WATER_TFACTOR).setValue(value);
    columns.get(AOA_TFACTOR).setValue(value);
  }

  public double water_tfactor() {
    return (double) columns.get(WATER_TFACTOR).getValue();
  }

  /* public void water_ifactor(double value) {
    columns.get(WATER_IFACTOR).setValue(value);
    }
    public double water_ifactor() {
    return ((double) columns.get(WATER_IFACTOR).getValue());
    }
   */
  public void water_kfactor(double value) {
    columns.get(WATER_KFACTOR).setValue(value);
    columns.get(AOA_KFACTOR).setValue(value);
  }

  public double water_kfactor() {
    return (double) columns.get(WATER_KFACTOR).getValue();
  }

  public void cfactor_source(String source) {
    if (source.equalsIgnoreCase("Mean") || source.equalsIgnoreCase("Sprial Search") || source.equalsIgnoreCase("Default Zero") || source.equalsIgnoreCase("Centroid")) {
      columns.get(CFACTOR_SOURCE).setValue(source);
    }
  }

  public String cfactor_source() {
    return (String) columns.get(CFACTOR_SOURCE).getValue();
  }

}