Package org.sbml.jsbml

Examples of org.sbml.jsbml.SBMLWriter


    Trigger t = e.createTrigger();
    t.setFormula("time == 1");
    EventAssignment ea = e.createEventAssignment(p, ASTNode
        .parseFormula("3"));
    e.addEventAssignment(ea);
    System.out.println((new SBMLWriter()).writeSBMLToString(doc));
  }
View Full Code Here


    // sbmlModel.addDeclaredNamespace("toto:ns2", "http://www.test.com");
    sbmlModel.addDeclaredNamespace("xmlns:ns3", "http://www.test.com");

    // but it is not working. In the output file written with:
   
    SBMLWriter ttt = new SBMLWriter();
    System.out.println( ttt.writeSBMLToString(sbmlDoc) );

    // the "html" namespace is missing (no line with xmlns:html="http://www.w3.org/1999/xhtml")
    // Could you please tell me if it is a bug or if I am doing something wrong?

  }
View Full Code Here

    Rule r = model.createAlgebraicRule();
    r.setMath(ASTNode.parseFormula("sin(3) + 1"));
   
    SBMLDocument doc2 = doc1.clone();
    try {
      (new SBMLWriter()).write(doc1, System.out);
      System.out.println("\n==================");
      (new SBMLWriter()).write(doc2, System.out);
    } catch (SBMLException e) {
      e.printStackTrace();
    } catch (XMLStreamException e) {
      e.printStackTrace();
    }
View Full Code Here

    Trigger t = e.createTrigger();
    t.setFormula("time == 1");
    EventAssignment ea = e.createEventAssignment(p, ASTNode
        .parseFormula("3"));
    e.addEventAssignment(ea);
    System.out.println((new SBMLWriter()).writeSBMLToString(doc));
  }
View Full Code Here

        }


        System.out.printf("Starting writing\n");

        new SBMLWriter().write(testDocument.clone(), jsbmlWriteFileName);
      }
      catch (XMLStreamException e)
      {
        e.printStackTrace();
      }
View Full Code Here

    Trigger t = e.createTrigger();
    t.setFormula("time == 1");
    EventAssignment ea = e.createEventAssignment(p, ASTNode
        .parseFormula("3"));
    e.addEventAssignment(ea);
    System.out.println((new SBMLWriter()).writeSBMLToString(doc));
  }
View Full Code Here

   
    // calling the generateSubModel with the selected reaction ids.
    // We do not care about any specific compartments, species, rules or events so we can pass null for these.
    SBMLDocument subModel = SubModel.generateSubModel(model, null, null, selectedReactionIds, null, null);
   
    new SBMLWriter().write(subModel, args[1]);
   
  }
View Full Code Here

   
    // calling the generateSubModel with the selected reaction ids.
    // We do not care about any specific compartments, species, rules or events so we can pass null for these.
    SBMLDocument subModel = SubModel.generateSubModel(model, null, null, selectedReactionIds, null, null);
   
    new SBMLWriter().write(subModel, args[1]);
   
  }
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.SBMLWriter

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.