Package uk.ac.ebi.biomodels.ws

Examples of uk.ac.ebi.biomodels.ws.SimpleModel


      return sbml;
  }
 
  public SimpleModel getSimpleModelById(String id){
    BioModelsWSClient client = createBioModelsWSClient();
    SimpleModel model = null;
    try {
      model = client.getSimpleModelById(id);
    } catch (BioModelsWSException e) {
      e.printStackTrace();
    }
View Full Code Here


  // string and html representations
  public static String getHTMLInformationForSimpleModels(LinkedHashMap<String, SimpleModel> simpleModels,
                               List<String> selectedSimpleModels){
    String info = "";
    for (String modelId : simpleModels.keySet()){
      SimpleModel model = simpleModels.get(modelId);
      boolean modelIsSelected = false;
      for (int i=0; i<selectedSimpleModels.size(); ++i){
        String selectedId = selectedSimpleModels.get(i);
        if (modelId.equals(selectedId)){
          modelIsSelected = true;
View Full Code Here

   
    // get simple model for first returned id
    if (modelIds.length > 0){
     
      String id = modelIds[0];
      SimpleModel simpleModel = client.getSimpleModelById(id);
     
      String textReport = getTextReportForSimpleModel(simpleModel);
      System.out.println(textReport);
    }
   
    // get SimpleModels for all the search results
    List<SimpleModel> simpleModels = client.getSimpleModelsByIds(modelIds)
   
    // Test special case
    String id = "MODEL8293171637";
    SimpleModel simpleModel = client.getSimpleModelById(id);
    System.out.println(id);
    System.out.println(simpleModel.getId());
  }
View Full Code Here

    info += "<hr>";
    return info;
  }
   
  public String getHTMLInformationForModel(int modelIndex){
    SimpleModel simpleModel = getSimpleModel(modelIndex);
    return BioModelWSInterfaceTools.getHTMLInformationForSimpleModel(simpleModel);
  }
View Full Code Here

TOP

Related Classes of uk.ac.ebi.biomodels.ws.SimpleModel

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.