Examples of SBMLWriter


Examples of org.sbml.jsbml.xml.stax.SBMLWriter

        .setNotes("<body>A senseless test model with a senseless notes element.</body>");

    m.getUnitDefinition("substance").getUnit(0).setScale(-3);

    try {
      new SBMLWriter().write(doc, new BufferedOutputStream(System.out),
          "SBMLWriterTest", "");
    } catch (XMLStreamException e) {
      e.printStackTrace();
    } catch (SBMLException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

    r.setKineticLaw(kl);
   
    System.out.println(math.toMathML());

    try {
      new SBMLWriter().write(doc, System.out);
    } catch (XMLStreamException e) {
      e.printStackTrace();
    } catch (SBMLException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

   
    EventAssignment assignment2 = event.createEventAssignment();
    assignment2.setVariable(k2);
    assignment2.setMath(new ASTNode(k1));
   
    new SBMLWriter().write(doc, System.out);
  }
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

        .setNotes("<body>A senseless test model with a senseless notes element.</body>");

    m.getUnitDefinition("substance").getUnit(0).setScale(-3);

    try {
      new SBMLWriter().write(doc, new BufferedOutputStream(System.out),
          "SBMLWriterTest", "");
    } catch (XMLStreamException e) {
      e.printStackTrace();
    } catch (SBMLException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

    // s1.getAnnotation().addRDFAnnotationNamespace("bqbiol", "",
    // "http://biomodels.net/biology-qualifiers/");
    s1.addCVTerm(new CVTerm(CVTerm.Type.BIOLOGICAL_QUALIFIER,
        CVTerm.Qualifier.BQB_HAS_PART, "urn:miriam:obo.chebi:CHEBI:15422"));
    System.out.println("==================================");
    new SBMLWriter().write(doc, System.out);
    new JTreeOfSBML(doc);
  }
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

   * @return the {@link Annotation} of this SBML object as a {@link String} or
   *         an empty {@link String} if there are no {@link Annotation}.
   *
   */
  public String getAnnotationString() {
    return isSetAnnotation() ? (new SBMLWriter()).writeAnnotation(this) : "";
  }
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

    s1.setValue(23.7);
    model.removeSpecies(s1);

    try {
      System.out.println();
      new SBMLWriter().write(doc, System.out);
    } catch (Exception exc) {
      exc.printStackTrace();
    }
  }
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

 
    SBMLDocument doc = new SBMLReader().readSBMLFile(fileName);
   
    String resultFileName = "biomd-025.xml";
   
    new SBMLWriter().write(doc, resultFileName);
  }
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

        new ASTNode(10)));
    ev.createPriority(ASTNode.parseFormula("25"));
    ev.createDelay(ASTNode.parseFormula("2"));
    ev.createEventAssignment("s1", ASTNode.parseFormula("s2"));
    System.out.println("==================================");
    new SBMLWriter().write(doc, System.out);
    System.out.println("\n==================================");
    doc.setLevelAndVersion(2, 4);
    System.out.println("==================================");
    new SBMLWriter().write(doc, System.out);
  }
View Full Code Here

Examples of org.sbml.jsbml.xml.stax.SBMLWriter

    r.setKineticLaw(kl);
   
    System.out.println(math.toMathML());

    try {
      new SBMLWriter().write(doc, System.out);
    } catch (XMLStreamException e) {
      e.printStackTrace();
    } catch (SBMLException e) {
      e.printStackTrace();
    }
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.