Examples of ManipulationResponse


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

            smr.setBeginingTimestepIdx(startTimestep);
            smr.setTimestepsToRun(runTimestep);
            smr.setManipulationId(manipulationId);
            smr.setSaveLastTimestepOnly(false);

            ManipulationResponse response = (ManipulationResponse) svc.executeManipulationRequest(smr);
            String errMsg = response.getMessage();
            if (errMsg != null) {
                System.out.println("Error (run): " + errMsg);
            } else {
                System.out.println("Manipulation was successfully operated with manipulation id " + response.getManipulationId());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

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

        return mSpecies;
    }       
               
        public void getPredictionTest(String foodwebName)
        {
            ManipulationResponse response = this.createDefaultSubFoodweb(foodwebName);           
            String manipulationId = response.getManipulationId();
            String netId = response.getNetworksId();
           
            this.getPredictionTest(null, manipulationId, 1);
           
            SpeciesZoneType szt3 = new SpeciesZoneType("test6", 8, 3, 20, 8.0, SpeciesTypeEnum.ANIMAL);  
            this.getPredictionTest(szt3, manipulationId, 2);           
View Full Code Here

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

            if(nodeList == null)
                return "nodeList is null";
            String netId = createSeregenttiSubFoodweb(foodwebName, nodeList, overwrite);
            System.out.println("netId:"+ netId);
            ManipulationResponse mr= this.run(beginingTimestep, timestepsToRun, netId, true);
           
//            getBiomassInfo(mr.getManipulationId());
//            deleteManipulation(mr.getManipulationId());
            if(mr == null || mr.getMessage() != null)
                return null;
            logTime("Total Time (Create and Run Serengeti Sub-Food Web): " + Math.round((System.currentTimeMillis() - milliseconds) / 10.0) / 100.0 + " seconds");
            return mr.getManipulationId();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.