Package org.sbml.jsbml

Examples of org.sbml.jsbml.Parameter


  private void setSpeciesConversionFactor(Species species, Model model) {

    if (species.isSetConversionFactor()) {
      String conversionFactorID = species.getConversionFactor();

      Parameter parameter = model.getParameter(conversionFactorID);

      if (parameter != null) {
        species.setConversionFactor(parameter);
      } else {
        // TODO : the parameter ID doesn't match a parameter, throw an
View Full Code Here


   
    //Model libsbmlAdapterModel = libSBMLAdapterReader.readModel(libsbmlDoc.getModel());
   
    // System.out.println("nb global parameters = " + libsbmlDoc.getModel().getNumParameters());
   
    Parameter J18 = model.getParameter("J18");
   
    assertTrue(J18 != null);
    assertTrue(J18.getValue() == 0.6);
   
    Reaction pRB_synthesis = model.getReaction("pRB_synthesis");
   
    assertTrue(pRB_synthesis != null);
    System.out.println("pRB_synthesis additional annotation : " + pRB_synthesis.getAnnotation().getNonRDFannotation());
View Full Code Here

  public ListenerTest() {
    SBMLDocument doc = new SBMLDocument(2, 2);
    doc.addTreeNodeChangeListener(this);
    Model model = doc.createModel("test_model");
    Parameter p1 = model.createParameter("p1");
    p1.setId("p2");
    model.removeParameter(p1);

    Compartment c = model.createCompartment("c");
    c.setSize(4.3);
    c.setSBOTerm(SBO.getPhysicalCompartment());
View Full Code Here

  @SuppressWarnings("deprecation")
  public static void main(String[] args) throws ParseException,
      XMLStreamException, SBMLException {
    SBMLDocument doc = new SBMLDocument(3, 1);
    Model model = doc.createModel("test_model");
    Parameter p = model.createParameter("p1");
    p.setValue(1d);
    Event e = model.createEvent("e1");
    Priority prior = e.createPriority();
    prior.setMath(new ASTNode(1));
    Trigger t = e.createTrigger();
    t.setFormula("time == 1");
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.Parameter

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.