Examples of Reaction


Examples of org.sbml.jsbml.Reaction

    assertTrue(x1.getName().equals("X1"));
    assertTrue(x1.getInitialAmount() == 0);
    assertTrue(x1.getBoundaryCondition() == true);
   
   
    Reaction r1 = model.getReaction(0);
   
    assertTrue(r1 != null);
   
    assertTrue(r1.getName().equals("reaction_1"));
    assertTrue(r1.getListOfReactants().size() == 1);
    assertTrue(r1.getListOfProducts().size() == 1);
    assertTrue(r1.getNumModifiers() == 0);
    assertTrue(r1.getReversible() == false);
   
    assertTrue(r1.getListOfReactants().get(0).getSpecies().equals("X0"));
    assertTrue(r1.getListOfProducts().get(0).getSpecies().equals("S1"));
   
    KineticLaw rdClkKL = r1.getKineticLaw();

    assertTrue(rdClkKL != null);
    assertTrue(rdClkKL.getListOfLocalParameters().size() == 1);
    assertTrue(rdClkKL.getListOfLocalParameters().get(0).getName().equals("k1"));
   
View Full Code Here

Examples of reaction.Reaction

   
  }
 
  public Reaction getTranscriptionRxn()
  {
    Reaction ret = new Reaction();
   
    // POL + TEMPLATE
    ret.addReactant(cell, POL, 1, 1);
    ret.addReactant(cell, TEMPLATE, 1, 1);
   
    // ---> POL + TEMPLATE + Nt
    ret.addProduct(cell, POL, (1 - alphaLtNt), tNt);
    ret.addProduct(cell, POL, alphaLtNt, tPOLt);
    ret.addProduct(cell, TEMPLATE, 1, polDelay);
    ret.addProduct(cell, Nt, 1, tNt);
    ret.addProduct(cell, POLt, alphaLtNt, tPOLt);
   
    // K
    ret.setk(1258 * 1000 * kReplication);
   
    return ret;
  }
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.