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

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


//            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

        }
       
        ManipulatingNodeProperty[] nps = (ManipulatingNodeProperty[]) lManipulatingNodeProperty.toArray(new ManipulatingNodeProperty[0]);       
        ManipulatingParameter[] sysParams = CopySystemParameter(sysParamList);       
       
        SimpleManipulationRequest smr = new SimpleManipulationRequest();
        smr.setUser(user);
        smr.setBeginingTimestepIdx(timestep);
        if (isFirstManipulation) {
            smr.setNetworkId(networkOrManipulationId);
        } else {
            smr.setManipulationId(networkOrManipulationId);
        }
        smr.setTimestepsToRun(Integer.valueOf(propertiesConfig.getProperty("timestepsToRunDefault")));
        smr.setManipulationModelNodes(nodes);
        smr.setNodeProperties(nps);
        smr.setSysParams(sysParams);
        smr.setDescription(" " + propertiesConfig.getProperty("addNewSpeciesTypeDescription"));
        smr.setSaveLastTimestepOnly(false);

        ManipulationResponse response = new ManipulationResponse();
        try {
            response = (ManipulationResponse) svc.executeManipulationRequest(smr);
            //TODO: Write web service call to database
View Full Code Here

        List<ManipulatingParameter> params = this.getSystemParameter(species, timestep);
       
        ManipulatingNodeProperty[] nps = (ManipulatingNodeProperty[]) lManipulatingNodeProperty.toArray(new ManipulatingNodeProperty[0]);       
        ManipulatingParameter[] sysParams = CopySystemParameter(params);       
       
        SimpleManipulationRequest smr = new SimpleManipulationRequest();
        smr.setSaveLastTimestepOnly(true);       
        smr.setUser(user);
        smr.setBeginingTimestepIdx(timestep);
        if (isFirstManipulation) {
            smr.setNetworkId(networkOrManipulationId);
        } else {
            smr.setManipulationId(networkOrManipulationId);
        }
        smr.setTimestepsToRun(Integer.valueOf(propertiesConfig.getProperty("timestepsToRunDefault")));
        smr.setManipulationModelNodes(nodes);
        smr.setNodeProperties(nps);
        smr.setSysParams(sysParams);
        smr.setDescription(species.getName() + " " + propertiesConfig.getProperty("addNewSpeciesTypeDescription"));
        smr.setSaveLastTimestepOnly(false);

        ManipulationResponse response = new ManipulationResponse();
        try {
            response = (ManipulationResponse) svc.executeManipulationRequest(smr);
            //TODO: Write web service call to database
View Full Code Here

                node.setOriginFoodwebId(propertiesConfig.getProperty("serengetiNetworkId"));               
                ManipulatingNode[] nodes = new ManipulatingNode[1];
                nodes[0] = node;               

               
    SimpleManipulationRequest smr = new SimpleManipulationRequest();
                smr.setSaveLastTimestepOnly(true);
    smr.setUser(user);
    smr.setBeginingTimestepIdx(timestep);
    if(isFirstManipulation)
      smr.setNetworkId(networkOrManipulationId);
    else
      smr.setManipulationId(networkOrManipulationId);     
    smr.setTimestepsToRun(Integer.valueOf(propertiesConfig.getProperty("timestepsToRunDefault")));
    smr.setManipulationModelNodes(nodes);
    smr.setDescription(species.getSpeciesCount() + " " + propertiesConfig.getProperty("addMoreSpeciesToExistingTypeDescription") + " " + species.getName());

    ManipulationResponse response = null;
    try
    {
      response = (ManipulationResponse) svc.executeManipulationRequest(smr);
View Full Code Here

    node.setHasLinks(false);
                ManipulatingNode[] nodes = new ManipulatingNode[1];
                nodes[0] = node;               
               
               
    SimpleManipulationRequest smr = new SimpleManipulationRequest();
                smr.setSaveLastTimestepOnly(true);
    smr.setUser(user);
    smr.setBeginingTimestepIdx(timestep);
    if(isFirstManipulation)
      smr.setNetworkId(networkOrManipulationId);
    else
      smr.setManipulationId(networkOrManipulationId);     
    smr.setTimestepsToRun(Integer.valueOf(propertiesConfig.getProperty("timestepsToRunDefault")));
    smr.setManipulationModelNodes(nodes);
    smr.setDescription(species.getSpeciesCount() + " " + propertiesConfig.getProperty("reduceSpeciesOfExistingTypeDescription") + " " + species.getName());

    ManipulationResponse response = null;
    try
    {
      response = (ManipulationResponse) svc.executeManipulationRequest(smr);
View Full Code Here

    node.setNodeIdx(species.getNodeIndex());
    node.setHasLinks(false);
                ManipulatingNode[] nodes = new ManipulatingNode[1];
                nodes[0] = node;               

    SimpleManipulationRequest smr = new SimpleManipulationRequest();
                smr.setSaveLastTimestepOnly(true);
    smr.setUser(user);
    smr.setBeginingTimestepIdx(timestep);
    if(isFirstManipulation)
      smr.setNetworkId(networkOrManipulationId);
    else
      smr.setManipulationId(networkOrManipulationId);     
    smr.setTimestepsToRun(Integer.valueOf(propertiesConfig.getProperty("timestepsToRunDefault")));
    smr.setManipulationModelNodes(nodes);
    smr.setDescription(species.getName() + " " + propertiesConfig.getProperty("removeSpeciesTypeDescription"));

    ManipulationResponse response = null;
    try
    {
      response = (ManipulationResponse) svc.executeManipulationRequest(smr);
View Full Code Here

        node.setTimestepIdx(timestep);
        node.setManipulationActionType(ManipulationActionType.MULTIPLE_BIOMASS_UPDATE.getManipulationActionType());
        ManipulatingNode[] nodes = new ManipulatingNode[1];
        nodes[0] = node;
       
        SimpleManipulationRequest smr = new SimpleManipulationRequest();
        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;
        try {
            response = (ManipulationResponse) svc.executeManipulationRequest(smr);
            //TODO: Write web service call to database
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.