src/java/m/prms/ApplicationConfig.java
@@ -38,5 +38,6 @@ |
resources.add(csip.ReportService.class); |
resources.add(csip.UIService.class); |
resources.add(m.prms.model.V4_0_3.class); |
+ resources.add(m.prms.model.V5_0.class); |
} |
} |
src/java/m/prms/model/V4_0_3.java
@@ -6,7 +6,6 @@ |
import csip.annotations.*; |
import static csip.annotations.ResourceType.*; |
import javax.ws.rs.Path; |
-import oms3.annotations.*; |
import org.apache.commons.io.FileUtils; |
import static m.prms.model.V4_0_3.PRMS_EXE; |
|
@@ -18,6 +17,10 @@ |
@Name("PRMS") |
@Description("Precipitation Runoff Modeling System.") |
@Path("m/prms/4.0.3") |
+@Author(org = "USGS") |
+@Author(org = "CSU") |
+@State(State.RELEASED) |
+@Category("Hydrology") |
@Polling(first = 5000, next = 2000) |
@Resource(type = EXECUTABLE, file = "/bin/lin-amd64/prms-4.0.3", id = PRMS_EXE) |
@Resource(type = OUTPUT, file = "*-stdout.txt *-stderr.txt recharge.* output/*") |
@@ -29,6 +32,7 @@ |
|
@Override |
protected void doProcess() throws Exception { |
+ |
if (!hasParam(PARM_CONTROL_FILE)) { |
throw new ServiceException("Missing parameter: " + PARM_CONTROL_FILE); |
} |