V2_0_1.java [src/java/m/example/simpleservice] Revision: 4a167946467bf180a7c868485f52103829c1dfbc  Date: Tue Jan 08 12:40:52 MST 2019
/*
 * 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.example.simpleservice;

import csip.ServiceException;
import javax.ws.rs.Path;
import static csip.annotations.State.*;
import csip.annotations.*;
import java.util.ArrayList;
import java.util.List;

@Name("conv #2")
@Description("Example of an simple service")
@Documentation("https://alm.engr.colostate.edu/csip")
@State(PROTOTYPE)
@License(License.GPL3)
@VersionInfo("$Id$")
@Author(name = "od", email = "<odavid@colostate.edu>", org = "CSU")
@Category("Examples")
@Category("Climate")

@Path("m/simpleservice/2.1")
public class V2_0_1 extends csip.ModelDataService {

  @Override
  protected void doProcess() throws Exception {

    long[] f = new long[5];
    List l = new ArrayList();
    for (double i = 0; i < 5; i++) {
      f[(int)i] = (long)i;
    }
    putResult("temp", f, "test", "F");
  }
}