ApplicationResources.java [src/java/m/ghg] 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 m.ghg;

import csip.Config;
import csip.annotations.Resource;
import static csip.annotations.ResourceType.EXECUTABLE;
import static csip.annotations.ResourceType.JDBC;
import static m.ghg.ApplicationResources.*;

/**
 *
 * @author od
 */
@Resource(type = JDBC, file = "${step.gis.database.db}", id = GISDB_SQLSVR, env = {
  "removeAbandoned=true", "defaultReadOnly=true", "defaultAutoCommit=false", "maxWait=300000", "jmxEnabled=false",
  "jdbcInterceptors=org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;"
  + "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;"
  + "org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer"
})

@Resource(type = JDBC, file = "${step.cr.database.db}", id = STEP_CRDB_SVR, env = {
  "removeAbandoned=true", "defaultReadOnly=true", "defaultAutoCommit=false", "maxWait=300000", "jmxEnabled=false",
  "jdbcInterceptors=org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;"
  + "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;"
  + "org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer"
})

@Resource(type = EXECUTABLE, file = "/bin/DC47_Dec2016", id = "Daycent")
@Resource(type = EXECUTABLE, file = "/bin/DC47_list100", id = "Daycent_list100")

public interface ApplicationResources {

  final int MODEL_OFFSET = 2000;

  static final String LRR_URL = Config.getString("trucarbon.lrr.url",
      "http://csip.engr.colostate.edu:8092/csip-truterra/d/mlra_lrr/getmlralrr/1.0");

  String GRIDMET_URL_KEY = "ghg.gridmet.url";
  String WINDGEN_URL_KEY = "ghg.windgen.url";
  String CLIGEN_URL_KEY = "ghg.cligen.url";

  String WEATHER_URL_KEY = "ghg.weatherfile.url";

  String GISDB_SQLSVR = "STEP_GISDB";
  String STEP_CRDB_SVR = "STEP_CRDB";

  String STREAM_FILE = "stream_output_file";
  String USE_CLIMATE_WIND = "use_cligen_wind";
  String COORDINATES = "coordinates";
  String TYPE = "type";

  String DAYCENT = "Daycent";
  String DAYCENT_LIST = "Daycent_list100";
  String DAYCENT_WEATHER = "dayCentWeather.IN";
  String SCHEDULE_FILE = "schedule_file";
  String SCHEDULE_FILE_IC = "schedule_file_IC";
  String WEATHER_DURATION_TXT = "weather_duration";
  String STARTING_YEAR_TXT = "starting_year";
  String CROP_ID = "crop_id";
  String TMP100 = "tmp.100";

  // months of the year
  int JANUARY = 0;
  int FEBRUARY = 1;
  int MARCH = 2;
  int APRIL = 3;
  int MAY = 4;
  int JUNE = 5;
  int JULY = 6;
  int AUGUST = 7;
  int SEPTEMBER = 8;
  int OCTOBER = 9;
  int NOVEMBER = 10;
  int DECEMBER = 11;

  // CROPS
  // SOYBEAN
  String SOYBEAN1 = "SYBN1";
  String SOYBEAN2 = "SYBN2";
  String SOYBEAN3 = "SYBN3";
  String SOYBEAN4 = "SYBN4";
  String BUCKWHEAT = "BKW";
  String SOYBEAN_CLOVER = "CLV1";
  String PEANUT = "PNUT";
  String SOYBEAN_COVER_CROP = "VETCH";
  // OAT
  String OAT1 = "OAT1";
  String OAT2 = "OAT2";
  String OAT3 = "OAT3";
  // CORN
  String CORN1 = "C1";
  String CORN2 = "C2";
  String CORN3 = "C3";
  String CORN4 = "C4";
  String CORN5 = "C5";
  String CORN6 = "C6";
  String CORN7 = "C7";
  String CORN8 = "C8";
  String CORN9 = "C9";
  String CORN10 = "C10";
  String CORN11 = "C11";
  String CORN12 = "C12";
  String CORN13 = "C13";
  String POPCORN13 = "PC13";
  String SWEETCORN13 = "SC13";
  String CORNSILAGE9 = "CSL9";
  String CORNSILAGE10 = "CSL10";
  String CORNSILAGE11 = "CSL11";
  String CORNSILAGE12 = "CSL12";
  String CORNSILAGE13 = "CSL13";
  // GRASS CLOVER PASTURE
  String GRASS_CLOVER_PASTURE1 = "GCP1";
  String GRASS_CLOVER_PASTUREI1 = "G1CPI";
  String GRASS_CLOVER_PASTUREI2 = "G2CPI";
  String GRASS_CLOVER_PASTUREI3 = "G3CPI";
  String GRASS_CLOVER_PASTUREI4 = "G4CPI";
  String GRASS_CLOVER_PASTUREI5 = "G5CPI";
  String GRASS_CLOVER_PASTURED1 = "G1CPD";
  String GRASS_CLOVER_PASTURED2 = "G2CPD";
  String GRASS_CLOVER_PASTURED3 = "G3CPD";
  String GRASS_CLOVER_PASTURED4 = "G4CPD";
  String GRASS_CLOVER_PASTURED5 = "G5CPD";
  String GRASS_CLOVER_PASTUREWA = "WACPD";
  String GRASS_CLOVER_PASTUREIWA = "WACPI";
  // GRASS
  String GRASS_0WARM_100COOL = "GI1";
  String GRASS_100WARM_0COOL = "GI2";
  String GRASS_50WARM_50COOL = "GI3";
  String GRASS_25WARM_75COOL = "GI4";
  String GRASS_75WARM_25COOL = "GI5";
  String GRASS_100COOL = "WC3";
  String TEMPERATE_TALLGRASS = "PC4EF";

  String GRASS_0W_100C = "G1";
  String GRASS_100W_0C = "G2";
  String GRASS_50W_50C = "G3";
  String GRASS_25W_75C = "G4";
  String GRASS_75W_25C = "G5";
  // SORGHUM
  String SORGHUM1 = "SORG1";
  String SORGHUM2 = "SORG2";
  String SORGHUM3 = "SORG3";
  String FSORGHUM = "FSORG";
  String SORG_HAY = "BSORG";
  String SORG_SILAGE = "SSORG";
  String COTTON = "COT";
  String COTTON2 = "COT2";
  String MILLET1 = "MILL1";
  String MILLET = "MILL";
  String MILLETM = "M";
  String MS = "MS";
  String FLAX = "FLAX";
  String LENT = "LENT";
  // WHEAT
  String WHEAT = "SW0";
  String WHEAT1 = "SW1";
  String WHEAT2 = "SW2";
  String WHEAT3 = "SW3";
  String WHEAT3P = "SW3P";
  String WHEAT3EG = "SW3EG";
  String WHEAT_HARVEST_INDEX_0 = "W0";
  String WHEAT_HARVEST_INDEX_1 = "W1";
  String WHEAT_HARVEST_INDEX_2 = "W2";
  String WHEAT_HARVEST_INDEX_3 = "W3";
  String WHEAT_HARVEST_INDEX_4 = "W4";
  String WHEAT_SILAGE_HARVEST_INDEX_4 = "WSL4";
  String SPRING_WHEAT_SILAGE_HARVEST_INDEX_4 = "SWSL4";
  String WINTER_WHEAT_BALEAGE_HARVEST_INDEX_4 = "WBL4";
  String SOFT_WHEAT_HARVEST_INDEX_4 = "SW4";
  String WHEAT_HARVEST_INDEX_3EG = "W3EG";
  String WHEAT_HARVEST_INDEX_TRIT = "TRIT";
  String WHEAT_HARVEST_INDEX_RYE = "RYE";
  String WHEAT_HARVEST_INDEX_RHAY = "RHAY";
  String WHEAT_HARVEST_INDEX_RSIL = "RSIL";
  //SUNFLOWER
  String SUNFLOWER = "SUN";
  //SAFFLOWER
  String SAFFLOWER = "SAFF";
  // BARLEY
  String BARLEY1 = "BAR1";
  String BARLEY2 = "BAR2";
  String BARLEY3 = "BAR3";
  String BARLEY_SILAGE = "BSIL";
  String BARLEY_HAY = "BHAY";
  //DRYBEANS
  String DRYBEANS = "DBEAN";
  //MUNG BEANS
  String MUNGBEANS = "MBEAN";
  //PEA
  String AUSTRIAN_WINTER_PEA = "AWP";
  String GENERIC_AUSTRIAN_PEA = "PEA";
  String PEA1 = "PEA1";
  String PEA2 = "PEA2";
  //SWITCHGRASS
  String SWITCHGRASS = "SG3";
  String BAHIA_SWITCHGRASS = "BAHI";
  //POTATO
  String POTATO_LAUCHSTADT = "POT";
  String POTATO_SUGARBEET = "SUGB";
  String POTATO_SUGARBEETL = "SUGBL";
  //WEEDS
  String WEEDSG1 = "G1WED";
  String WEEDSG2 = "G2WED";
  String WEEDSG3 = "G3WED";
  String WEEDSG4 = "G4WED";
  String WEEDSG5 = "G5WED";
  String WEEDSWA = "WAWED";
  String WEEDSE = "E";

  String CEREAL_HAY = "CHAY";

  String LEGUME_COVER_CROP = "CC1";
  String CEREAL_COVER_CROP = "CC2";
  String GRASS_COVER_CROP = "CC3";
  String BROADLEAF_COVER_CROP = "CC4";
  String LEGUME_CEREAL_COVER_CROP = "CC5";
  //ONION
  String ONION_JORDAN = "JONI";
  //TOMATO
  String TOMATOES = "JTOM";
  //ALFALFA
  String ALFALFA1 = "ALF1";
  String ALFALFA2 = "ALF2";
  String ALFALFA3 = "ALF3";
  String ALFALFA4 = "ALF4";
  String ALFALFA_BALEAGE = "ALFB";
  //RICEA
  String RICE_LOWLAND = "RICL";
  // PARAMETERS
  String PRDX = "prdx";
  String HIMAX = "himax";
  String HIWSF = "hiwsf";
  String WSCOEFF1 = "wscoeff1";
  String WSCOEFF2 = "wscoeff2";
  String PPDF1 = "ppdf1";
  String PPDF2 = "ppdf2";
  String PPDF3 = "ppdf3";
  String PPDF4 = "ppdf4";
  String PRAMN = "pramn";
  String PRAMX = "pramx";
  String SFAVAIL = "sfavail";
  //Variables for FIX100
  String FIXES = "fixes";
  String FWLOSS1 = "fwloss1";
  String FWLOSS2 = "fwloss2";
  String FWLOSS3 = "fwloss3";
  String FWLOSS4 = "fwloss4";
  String DEC32 = "dec32";
  String DEC11 = "dec11";
  String DEC12 = "dec12";
  String DEC21 = "dec21";
  String DEC22 = "dec22";
  String DEC31 = "dec31";
  String DEC51 = "dec51";
  String DEC4 = "dec4";
  String DEC52 = "dec52";
  String TEFF1 = "teff1";
  String TEFF2 = "teff2";
  String TEFF3 = "teff3";
  String TEFF4 = "teff4";
  String PS1S31 = "ps1s31";
  String PS1S32 = "ps1s32";
  String PS2S31 = "ps2s31";
  String PS2S32 = "ps2s32";
  String PMCO22 = "pmco22";
  String P2CO22 = "p2co22";
  String PS1CO22 = "ps1co22";
  String P1CO2A2 = "p1co2a2";
  String P1CO2B2 = "p1co2b2";
  String P3CO2 = "p3co2";
  //Variables for LRR_M100
  String LRRM = "lrrm";
  String BASEF = "basef";
  //Variables for TREE100
  String TMDF = "TMDF";
  String CTMX = "CTMX";
}