Package org.xmlsoap.schemas.ws._2004._08.addressing

Examples of org.xmlsoap.schemas.ws._2004._08.addressing.EndpointReferenceType


            int nodeList[] = {1,8};
            int halfSDtoPlant = 200;
            String manpId = se.createAndRunSeregenttiSubFoodweb(nodeList, "testInsectWeb", 0, 1, true);
                   
           List<ManipulatingNode> nodes = new ArrayList<ManipulatingNode>();
            ManipulatingNode node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(1);
            node.setBeginingBiomass(2000);
            node.setHasLinks(false);
            nodes.add(node);


            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(8);
            node.setBeginingBiomass(2);
            node.setHasLinks(false);
            nodes.add(node);

           
            List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(1, ManipulatingParameterName.k.getManipulatingParameterIndex(), 8000, sParams);
            se.setLinkParameter(8, 1, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 1, sParams);           

            se.updateSystemParameters(1, false, manpId, sParams, nodes);
          
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(2);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(2);
            node.setBeginingBiomass(2000);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(2, ManipulatingParameterName.k.getManipulatingParameterIndex(), 4000, 2, sParams);                                   
            se.setLinkParameter(8, 2, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 2, sParams);                       
            se.updateSystemParameters(2, false, manpId, sParams, nodes);  

           
           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(3);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(9);
            node.setBeginingBiomass(2);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setLinkParameter(9, 1, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 3, sParams);                       
            se.updateSystemParameters(3, false, manpId, sParams, nodes);              

           
           
           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(4);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(12);
            node.setBeginingBiomass(1.5);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setLinkParameter(12, 1, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 4, sParams);           
            se.updateSystemParameters(4, false, manpId, sParams, nodes);              

           
           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(5);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(5);
            node.setBeginingBiomass(2000);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(5, ManipulatingParameterName.k.getManipulatingParameterIndex(), 4000, 5, sParams);                                               
            se.setLinkParameter(12, 5, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 5, sParams);                       
            se.updateSystemParameters(5, false, manpId, sParams, nodes);              

           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(6);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(14);
            node.setBeginingBiomass(3);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setLinkParameter(14, 1, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 6, sParams);           
            se.setLinkParameter(14, 2, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 6, sParams);           
            se.setLinkParameter(14, 5, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 6, sParams);                       
            se.updateSystemParameters(6, false, manpId, sParams, nodes);              

           
           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(7);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(7);
            node.setBeginingBiomass(2000);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(7, ManipulatingParameterName.k.getManipulatingParameterIndex(), 4000, 7, sParams);                                                           
            se.setLinkParameter(14, 7, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 7, sParams);                       
            se.updateSystemParameters(7, false, manpId, sParams, nodes);              

           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(8);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(16);
            node.setBeginingBiomass(1.3);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setLinkParameter(16, 1, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 8, sParams);                                   
            se.updateSystemParameters(8, false, manpId, sParams, nodes);              

           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(9);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(20);
            node.setBeginingBiomass(1.2);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.updateSystemParameters(9, false, manpId, sParams, nodes);              
           
            se.run(10, 20, manpId, false);

           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(30);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(1);
            node.setBeginingBiomass(8000);
            node.setHasLinks(false);
            nodes.add(node);
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.updateSystemParameters(30, false, manpId, sParams, nodes);              
           
View Full Code Here


        {
            int nodeList[] = {4,5, 73};
            String manpId = se.createAndRunSeregenttiSubFoodweb(nodeList, "testNode4and73", 0, 1, true);
                   
           List<ManipulatingNode> nodes = new ArrayList<ManipulatingNode>();
            ManipulatingNode node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(4);
            node.setBeginingBiomass(10000);
            node.setHasLinks(false);
            nodes.add(node);

            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(5);
            node.setBeginingBiomass(10000);
            node.setHasLinks(false);
            nodes.add(node);

           
            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(73);
            node.setBeginingBiomass(10);
            node.setHasLinks(false);
            nodes.add(node);
           
           
            List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
//            this.setNodeParameter(5, ManipulatingParameterName.k.getManipulatingParameterIndex(), 8000, sParams);
View Full Code Here

      {
            int nodeList[] = {1,8};
            String manpId = se.createAndRunSeregenttiSubFoodweb(nodeList, "testInsectWeb", 0, 1, true);
                   
           List<ManipulatingNode> nodes = new ArrayList<ManipulatingNode>();
            ManipulatingNode node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(1);
            node.setBeginingBiomass(2000);
            node.setHasLinks(false);
            nodes.add(node);


            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(8);
            node.setBeginingBiomass(2);
            node.setHasLinks(false);
            nodes.add(node);

           
            List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(1, ManipulatingParameterName.k.getManipulatingParameterIndex(), 8000, sParams);
            se.setNodeParameter(8, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.75, 1, sParams);           
//            this.setNodeParameter(12, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.9, sParams);                       
//            this.setNodeParameter(5, ManipulatingParameterName.k.getManipulatingParameterIndex(), 5000, sParams);           
//            this.setNodeParameter(4, ManipulatingParameterName.r.getManipulatingParameterIndex(), , sParams);
//            this.setNodeParameter(5, ManipulatingParameterName.r.getManipulatingParameterIndex(), 0.333, sParams);           

//            this.setLinkParameter(73, 4, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.6, 1, sParams);           
//            this.setLinkParameter(73, 5, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.4, 1, sParams);                       
            se.updateSystemParameters(1, false, manpId, sParams, nodes);

///            testParameters(manpId, sParams);
//            run(2, 8, manpId, false);                       

          
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(2);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(2);
            node.setBeginingBiomass(2000);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(2, ManipulatingParameterName.k.getManipulatingParameterIndex(), 4000, 2, sParams);                                   
//            se.setNodeParameter(12, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.85, 2, sParams);                       
//            this.setLinkParameter(9, 1, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.05, 1, sParams);           
//            this.setLinkParameter(9, 9, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.3, 1, sParams);                       
//            this.setLinkParameter(9, 12, ManipulatingParameterName.a.getManipulatingParameterIndex(), 0.65, 1, sParams);                       
           
//            this.setLinkParameter(73, 4, ManipulatingParameterName.d.getManipulatingParameterIndex(), 1, 3, sParams);
//            this.setNodeParameter(73, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.9, sParams);
//            this.setNodeParameter(5, ManipulatingParameterName.r.getManipulatingParameterIndex(), 0.333, sParams);           
            se.updateSystemParameters(2, false, manpId, sParams, nodes);  
//            run(3, 27, manpId, false);                         

           
           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(3);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(9);
            node.setBeginingBiomass(2);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.updateSystemParameters(3, false, manpId, sParams, nodes);              

           
           
           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(4);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(12);
            node.setBeginingBiomass(1.5);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.updateSystemParameters(4, false, manpId, sParams, nodes);              

           
           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(5);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(5);
            node.setBeginingBiomass(2000);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(5, ManipulatingParameterName.k.getManipulatingParameterIndex(), 4000, 5, sParams);                                               
            se.updateSystemParameters(5, false, manpId, sParams, nodes);              

           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(6);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(14);
            node.setBeginingBiomass(3);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.updateSystemParameters(6, false, manpId, sParams, nodes);              

           
           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(7);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(7);
            node.setBeginingBiomass(2000);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(7, ManipulatingParameterName.k.getManipulatingParameterIndex(), 4000, 7, sParams);                                                           
            se.updateSystemParameters(7, false, manpId, sParams, nodes);              

           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(8);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(16);
            node.setBeginingBiomass(1.3);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.updateSystemParameters(8, false, manpId, sParams, nodes);              

           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(9);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(20);
            node.setBeginingBiomass(1.2);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.updateSystemParameters(9, false, manpId, sParams, nodes);              
           
            se.run(10, 20, manpId, false);

           
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(30);
            node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(1);
            node.setBeginingBiomass(8000);
            node.setHasLinks(false);
            nodes.add(node);
           
            sParams = new ArrayList<ManipulatingParameter>();
            se.updateSystemParameters(30, false, manpId, sParams, nodes);              
           
View Full Code Here

    public String createSeregenttiSubFoodweb(String networkName, int nodeList[], boolean overwrite)
    {
        String netId = null;
       
        ModelParam[] networkParams = new ModelParam[2];
        networkParams[0] = new ModelParam();
        networkParams[0].setParamName(ManipulatingNodePropertyName.Connectance.name());
        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
View Full Code Here

    {
        return propertiesConfig;
    }
    public ManipulationResponse createDefaultSubFoodweb(String networkName) {
        ModelParam[] networkParams = new ModelParam[2];
        networkParams[0] = new ModelParam();
        networkParams[0].setParamName(ManipulatingNodePropertyName.Connectance.name());
        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
View Full Code Here

        smr.setUser(user);
        smr.setBeginingTimestepIdx(timestep);
        smr.setManipulationId(manipulationId);
        smr.setTimestepsToRun(Integer.valueOf(propertiesConfig.getProperty("timestepsToRunDefault")));
        smr.setManipulationModelNodes(nodes);
        NodeBiomass nba[] = (NodeBiomass[]) lNodeBiomass.toArray(new NodeBiomass[0]);
        smr.setNodeBiomasses(nba);
        smr.setDescription(propertiesConfig.getProperty("updateBiomassDescription"));
        smr.setSaveLastTimestepOnly(false);

        ManipulationResponse response = null;
View Full Code Here

        if (!mUpdateSpecies.isEmpty()) {
            List<NodeBiomass> lNodeBiomass = new ArrayList<NodeBiomass>();

            for (SpeciesZoneType s : mUpdateSpecies.values()) {
                System.out.println("Updating Biomass: [" + s.getNodeIndex() + "] " + s.getName() + " " + s.getCurrentBiomass() / Constants.BIOMASS_SCALE);
                lNodeBiomass.add(new NodeBiomass(s.getCurrentBiomass() / Constants.BIOMASS_SCALE, s.getNodeIndex()));
            }

            if (!lNodeBiomass.isEmpty()) {
                try {
                    updateBiomass(networkOrManipulationId, lNodeBiomass, currentTimestep);
View Full Code Here

        List<NodeBiomass> lNodeBiomass = new ArrayList<NodeBiomass>();


        for (SpeciesZoneType s : mSpecies.values()) {
            s.setBiomassUpdate(false);
            lNodeBiomass.add(new NodeBiomass(s.getCurrentBiomass(), s.getNodeIndex()));
        }
       
        if (!lNodeBiomass.isEmpty()) {
            try {
                updateBiomass(networkOrManipulationId, lNodeBiomass, currentTimestep);
View Full Code Here

            int nodeList[] = {5, 7, 33, 52, 80, 82, 86, 92, 95};
            // Fruits and nectar, Grains and seeds, Grass and herbs,  Trees and shrubs, Leopard, Lion, Topi, Buffalo, Southern eland, Nile crocodile
            String manpId = this.createAndRunSeregenttiSubFoodweb(nodeList, "sgModelTest4", 0, 5, true);
           
            List<NodeBiomass> lNodeBiomass = new ArrayList<NodeBiomass>();
            NodeBiomass nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(5);
            lNodeBiomass.add(nb);
            nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(7);
            lNodeBiomass.add(nb);
            nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(33);
            lNodeBiomass.add(nb);
            nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(52);
            lNodeBiomass.add(nb);
            nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(80);
            lNodeBiomass.add(nb);
            nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(82);
            lNodeBiomass.add(nb);
            nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(86);
            lNodeBiomass.add(nb);
            nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(92);
            lNodeBiomass.add(nb);
            nb = new NodeBiomass();
            nb.setBiomass(0);
            nb.setNodeIdx(95);
            lNodeBiomass.add(nb);

            try {
                this.updateBiomass(manpId,lNodeBiomass, 6);
            } catch (SimulationException ex) {
View Full Code Here

        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();
            //TODO: Write web service call to database
        } catch (RemoteException e) {
            e.printStackTrace();
        }
       
        String errorMsg = response.getMessage();
        if (errorMsg != null)
        {
            System.err.println("Error type: " + response.getErrorType() + "  error msg:" + errorMsg);
            return null;
        }
       
        return netId;
    }
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws._2004._08.addressing.EndpointReferenceType

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.