V3_0.java [src/java/m/wepp] Revision:   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.wepp;

import csip.annotations.*;
import static csip.annotations.ResourceType.*;
import static csip.annotations.State.RELEASED;
import javax.ws.rs.*;

/**
 *
 * <p>
 * WEPP This implements the CSIP WEPP service. To build the input files for WEPP
 * several external c++ and FORTRAN programs are used:</p>
 * <ul>
 * <li>wepphillslopeserv.exe - a c++ program that takes a high-level description
 * of the WEPP run and creates WEPP input files. It handles getting the input
 * files into multiple OFE format if required.
 * <li>wepp.exe - The FORTRAN WEPP model setup and run by wepphillslopeserv.exe
 * </ul>
 * <p>
 * The data resources referenced include:</p>
 * <ul>
 * <li>defaultInitCond.txt - WEPP managements require a set of initial
 * conditions parameters. This is one supplied for all runs.
 * <li>defaultInitCondCrop.txt - This is the set of crop parameters that go with
 * the initial condition.
 * <li>defaultPereInitCond.txt - This initial condition is used for perennial
 * crops.
 * <li>defaultPereInitCondCrop.txt - This is the initial perennial crop that is
 * referenced by the initial condition.
 * </ul>
 *
 * @author jf, od
 */
@Name("wepp2018")
@Description("WEPP model CSIP REST service CRLMOD version - 8/1/2018")
@State(RELEASED)
@Path("m/wepp/3.0")
@Polling(first = 2000, next = 2000)

// Executables & File parameter
@Resource(file = "/bin/${arch}/wepphillslopeserv.exe", id = "weppserv", type = EXECUTABLE)
@Resource(file = "/bin/${arch}/wepp_2018.exe", id = "wepp", type = EXECUTABLE)

// Files 
//@Resource(file = "/data/defaultInitCond.txt", id = "defInitCond")
@Resource(file = "/data/defaultInitCondCrop.txt", id = "defInitCondCrop")
//@Resource(file = "/data/defaultPereInitCond.txt", id = "defPereInitCond")
@Resource(file = "/data/defaultPereInitCondCrop.txt", id = "defPereInitCondCrop")
//@Resource(file = "/data/defaultFallowInitCond.txt", id = "defFallowInitCond")
@Resource(file = "/data/woodyini.json", id = "woodyInitCondSettings")

// Output to capture
@Resource(file = "*stdout.txt *stderr.txt", type = OUTPUT)

public class V3_0 extends V2_0 {

  public V3_0() {
    modelVersion = "3";
  }

}