Package org.datacontract.schemas._2004._07.WCFService_Portal

Examples of org.datacontract.schemas._2004._07.WCFService_Portal.TimeseriesUpdateRequest


        networkParams[0].setParamValue(Double.valueOf(propertiesConfig.getProperty("connectanceDefault")));
        networkParams[1] = new ModelParam();
        networkParams[1].setParamName(ManipulatingNodePropertyName.SpeciesCount.name());
        networkParams[1].setParamValue(Integer.valueOf(propertiesConfig.getProperty("speciesCountDefault")));

        NetworkCreationRequest req = new NetworkCreationRequest();
        req.setUser(user); // Owner of network
        req.setNetworkName(networkName); // Name of network -> username_worldname_zoneid
        req.setModelType(ModelType.CASCADE_MODEL.getModelType());
        req.setModelParams(networkParams);
        req.setCreationType(1); // sub food web
        req.setOriginFoodweb(propertiesConfig.getProperty("serengetiNetworkId")); // Serengeti
        req.setNodeList(nodeList);
        req.setOverwrite(overwrite);
       
        CreateFoodwebResponse response = null;
        try {
            response = (CreateFoodwebResponse) svc.executeNetworkCreationRequest(req);
            netId = response.getNetworkId();
View Full Code Here


        networkParams[0].setParamValue(Double.valueOf(propertiesConfig.getProperty("connectanceDefault")));
        networkParams[1] = new ModelParam();
        networkParams[1].setParamName(ManipulatingNodePropertyName.SpeciesCount.name());
        networkParams[1].setParamValue(Integer.valueOf(propertiesConfig.getProperty("speciesCountDefault")));

        NetworkCreationRequest req = new NetworkCreationRequest();
        req.setUser(user); // Owner of network
        req.setNetworkName(networkName); // Name of network -> username_worldname_zoneid
        req.setModelType(ModelType.CASCADE_MODEL.getModelType());
        req.setModelParams(networkParams);
        req.setCreationType(1); // sub food web
        req.setOriginFoodweb(propertiesConfig.getProperty("serengetiNetworkId")); // Serengeti
        int nodeList[] = {Integer.valueOf(propertiesConfig.getProperty("defaultSpecies1Id")), Integer.valueOf(propertiesConfig.getProperty("defaultSpecies2Id"))}; // Grass & buffalo
        req.setNodeList(nodeList);

        CreateFoodwebResponse response = null;
        try {
            response = (CreateFoodwebResponse) svc.executeNetworkCreationRequest(req);
            //TODO: Write web service call to database
View Full Code Here

            NetworkInfoResponse response = (NetworkInfoResponse) svc.executeRequest(request);
            //TODO: Write web service call to database
            if (response.getMessage() == null) {
                System.out.println("\nNetwork info:");
                NetworkInfo info[] = response.getNetworkInfo();
                for (int i = 0; i < info.length; i++) {
                    System.out.println(info[i].getNetworkName() + " = " + info[i].getNetworkId());
                }
            } else {
                System.out.println("Error: " + response.getMessage());
View Full Code Here

//        }
//    }
   
    public void getNetworkInfo() {
        try {
            NetworkInfoRequest request = new NetworkInfoRequest();
            request.setUser(user);

            NetworkInfoResponse response = (NetworkInfoResponse) svc.executeRequest(request);
            //TODO: Write web service call to database
            if (response.getMessage() == null) {
                System.out.println("\nNetwork info:");
View Full Code Here

    
     public void nodeInfoTest(SimulationEngine se)
     {
         try
         {
            NetworkInfoRequest nir = new NetworkInfoRequest();
            String keyword = "Serengeti";
            nir.setTextSearch(true);
            nir.setTextSearchMode(0);
     
            Object[] sps = new Object[1];
            sps[0] = keyword;
//      nir.setWhereClause("name == @0");
//            nir.setSearchParameters(sps);
            nir.setWhereClause(keyword);
           
           
   
            NetworkInfoResponse ns = (NetworkInfoResponse)se.getN3DService().executeRequest(nir);        
      String errMsg = ns.getMessage();
View Full Code Here

    public void getNetworkInfo() {
        try {
            NetworkInfoRequest request = new NetworkInfoRequest();
            request.setUser(user);

            NetworkInfoResponse response = (NetworkInfoResponse) svc.executeRequest(request);
            //TODO: Write web service call to database
            if (response.getMessage() == null) {
                System.out.println("\nNetwork info:");
                NetworkInfo info[] = response.getNetworkInfo();
                for (int i = 0; i < info.length; i++) {
                    System.out.println(info[i].getNetworkName() + " = " + info[i].getNetworkId());
                }
            } else {
                System.out.println("Error: " + response.getMessage());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

//            nir.setSearchParameters(sps);
            nir.setWhereClause(keyword);
           
           
   
            NetworkInfoResponse ns = (NetworkInfoResponse)se.getN3DService().executeRequest(nir);        
      String errMsg = ns.getMessage();
      if(errMsg != null)
        System.out.print("msg:"+errMsg);
      NetworkInfo[] nets = ns.getNetworkInfo();
      for(NetworkInfo net : nets)
      {
        System.out.print("node:"+net.getNetworkName());
      }
//         NodeInfoRequest nir = new NodeInfoRequest();
View Full Code Here

       
  public void run()
  {
            try
            {
                NetworkRemoveRequest request = new NetworkRemoveRequest();
                request.setUser(user);
                request.setNetworksIdx(_netId);
                svc.executeRequest(request);
            }
            catch(Exception e)
            {
           
View Full Code Here

       
        public void nodeInfoTest()
        {
           
          NodeInfoRequest nir = new NodeInfoRequest();
                nir.setUser(user);
                nir.setNetworkId(propertiesConfig.getProperty("serengetiNetworkId"));
                       
            try
            {
    NodeInfoResponse rsps = (NodeInfoResponse)svc.executeRequest(nir);
   
View Full Code Here

                nir.setUser(user);
                nir.setNetworkId(propertiesConfig.getProperty("serengetiNetworkId"));
                       
            try
            {
    NodeInfoResponse rsps = (NodeInfoResponse)svc.executeRequest(nir);
   
    if(rsps != null)
    {
      NodeInfo[] nodes = rsps.getNodes();
      for(NodeInfo node : nodes)
      {
        System.out.print("node name:"+node.getNodeName());
        System.out.print("  idx:"+node.getNodeIdx());         
        System.out.println("  TL:"+node.getTrophicLevel());         
View Full Code Here

TOP

Related Classes of org.datacontract.schemas._2004._07.WCFService_Portal.TimeseriesUpdateRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.