Package org.datacontract.schemas._2004._07.trade

Examples of org.datacontract.schemas._2004._07.trade.BSConfigResponse


            String manpId = se.createAndRunSeregenttiSubFoodweb(nodeList, "sg10Test27",0, 1, true);
            System.out.println("manpId:"+manpId);
           
            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(2500);
            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(2500);
            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(100);
            node.setHasLinks(false);
            nodes.add(node);           
           
            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(80);
            node.setBeginingBiomass(5);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId("74B9B375-1729-4516-A231-AE8A6114AACF");           
            nodes.add(node);                  
           
           
            List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
            se.setLinkParameter(73, 5, ManipulatingParameterName.d.getManipulatingParameterIndex(), 0.5, sParams);
View Full Code Here


            String manpId = se.createAndRunSeregenttiSubFoodweb(nodeList, "sg10Test27",0, 1, true);
            System.out.println("manpId:"+manpId);
           
            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(2500);
            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(2500);
            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(100);
            node.setHasLinks(false);
            nodes.add(node);           
           
            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(80);
            node.setBeginingBiomass(5);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId("74B9B375-1729-4516-A231-AE8A6114AACF");           
            nodes.add(node);                  
           
           
            List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
            se.setLinkParameter(73, 4, ManipulatingParameterName.d.getManipulatingParameterIndex(), 0.1, sParams);           
View Full Code Here

           int nodeList[] = {34,10,11,13,14,15};
            int halfSDtoPlant = 200;
            String manpId = se.createAndRunSeregenttiSubFoodweb(nodeList, "testMay26_1", 0, 1, true);
                   
           List<ManipulatingNode> nodes = new ArrayList<ManipulatingNode>();
            ManipulatingNode node = new ManipulatingNode();
            nodes = new ArrayList<ManipulatingNode>();
            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(15);
            node.setBeginingBiomass(1);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId(se.getProperties().getProperty("serengetiNetworkId"));           
            nodes.add(node);            

            List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
            se.setLinkParameter(14, 1, ManipulatingParameterName.b0.getManipulatingParameterIndex(), halfSDtoPlant, 6, sParams);           
            se.updateSystemParameters(1, false, manpId, sParams, nodes);                         
View Full Code Here

            String manpId = se.createAndRunSeregenttiSubFoodweb(nodeList, "sg10Test27",0, 1, true);
            System.out.println("manpId:"+manpId);
           
            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(2500);
            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(2500);
            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(100);
            node.setHasLinks(false);
            nodes.add(node);           

           
            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(80);
            node.setBeginingBiomass(5);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId("74B9B375-1729-4516-A231-AE8A6114AACF");           
            nodes.add(node);                  
           
           
            List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(5, ManipulatingParameterName.k.getManipulatingParameterIndex(), 8000, sParams);
View Full Code Here

            String manpId = se.createAndRunSeregenttiSubFoodweb(nodeList, "sg10Test27",0, 1, true);
            System.out.println("manpId:"+manpId);
           
            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(2500);
            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(2500);
            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(100);
            node.setHasLinks(false);
            nodes.add(node);           

           
            node = new ManipulatingNode();
            node.setTimestepIdx(1);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(80);
            node.setBeginingBiomass(5);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setOriginFoodwebId("74B9B375-1729-4516-A231-AE8A6114AACF");           
            nodes.add(node);                  
           
           
            List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
            se.setNodeParameter(73, ManipulatingParameterName.x.getManipulatingParameterIndex(), 0.8, sParams);                       
View Full Code Here

        List<ManipulatingNodeProperty> lManipulatingNodeProperty = new ArrayList<ManipulatingNodeProperty>();       
        ManipulatingNode[] nodes = new ManipulatingNode[speciesList.size()];
        int i = 0;
        for(SpeciesZoneType species : speciesList)
        {
            ManipulatingNode node = new ManipulatingNode();
            node.setTimestepIdx(timestep);
            node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
            node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
            node.setNodeIdx(species.getNodeIndex());
            node.setBeginingBiomass(species.getCurrentBiomass() / Constants.BIOMASS_SCALE);
            node.setHasLinks(false);
            node.setGameMode(true);           
            node.setNodeName(species.getName()); // set node name           
            node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));           
            nodes[i++] = node;
           
            //Connectance
            ManipulatingNodeProperty mnp = new ManipulatingNodeProperty();
            mnp.setNodeIdx(species.getNodeIndex());           
View Full Code Here

   
   
    public String addNewSpeciesType(SpeciesZoneType species, int timestep, boolean isFirstManipulation, String networkOrManipulationId) {
        long milliseconds = System.currentTimeMillis();       

        ManipulatingNode node = new ManipulatingNode();
        node.setTimestepIdx(timestep);
        node.setManipulationActionType(ManipulationActionType.SPECIES_INVASION.getManipulationActionType()); // invasion
        node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
        node.setNodeIdx(species.getNodeIndex());
        node.setBeginingBiomass(species.getSpeciesCount() * species.getPerSpeciesBiomass()); // biomass = species count * per species biomass
        node.setGameMode(true);
        node.setNodeName(species.getName()); // set node name
        node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));
        ManipulatingNode[] nodes = new ManipulatingNode[1];
        nodes[0] = node;               


        List<ManipulatingNodeProperty> lManipulatingNodeProperty = new ArrayList<ManipulatingNodeProperty>();
View Full Code Here

        return response.getManipulationId();
    }

  String addMoreSpeciesOfExistingType(SpeciesZoneType species, int timestep, boolean isFirstManipulation, String networkOrManipulationId)
  {
    ManipulatingNode node = new ManipulatingNode();
    node.setTimestepIdx(timestep);
    node.setManipulationActionType(ManipulationActionType.SPECIES_PROLIFERATION.getManipulationActionType()); // proliferation
    node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
    node.setNodeIdx(species.getNodeIndex());
    node.setBeginingBiomass(species.getSpeciesCount() * species.getPerSpeciesBiomass()); // biomass = species count * per species biomass
                node.setGameMode(true);
                node.setNodeName(species.getName()); // set node name
                node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));               
                ManipulatingNode[] nodes = new ManipulatingNode[1];
                nodes[0] = node;               

               
    SimpleManipulationRequest smr = new SimpleManipulationRequest();
View Full Code Here

    return response.getManipulationId();
  }

  String reduceSpeciesOfExistingType(SpeciesZoneType species, int timestep, boolean isFirstManipulation, String networkOrManipulationId)
  {
    ManipulatingNode node = new ManipulatingNode();
    node.setTimestepIdx(timestep);
    node.setManipulationActionType(ManipulationActionType.SPECIES_EXPLOIT.getManipulationActionType()); // exploit
    node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
    node.setNodeIdx(species.getNodeIndex());
    node.setBeginingBiomass(species.getSpeciesCount() * species.getPerSpeciesBiomass()); // biomass = species count * per species biomass
    node.setHasLinks(false);
                ManipulatingNode[] nodes = new ManipulatingNode[1];
                nodes[0] = node;               
               
               
    SimpleManipulationRequest smr = new SimpleManipulationRequest();
View Full Code Here

    return response.getManipulationId();
  }

  String removeSpeciesType(SpeciesZoneType species, int timestep, boolean isFirstManipulation, String networkOrManipulationId)
  {
    ManipulatingNode node = new ManipulatingNode();
    node.setTimestepIdx(timestep);
    node.setManipulationActionType(ManipulationActionType.SPECIES_REMOVAL.getManipulationActionType()); // removal
    node.setModelType(ModelType.CASCADE_MODEL.getModelType()); // cascading model
    node.setNodeIdx(species.getNodeIndex());
    node.setHasLinks(false);
                ManipulatingNode[] nodes = new ManipulatingNode[1];
                nodes[0] = node;               

    SimpleManipulationRequest smr = new SimpleManipulationRequest();
                smr.setSaveLastTimestepOnly(true);
View Full Code Here

TOP

Related Classes of org.datacontract.schemas._2004._07.trade.BSConfigResponse

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.