Examples of addReactant()


Examples of org.sbml.jsbml.Reaction.addReactant()

              SpeciesReference speciesReference = (SpeciesReference) newContextObject;
              speciesReference.initDefaults();

              if (list.getSBaseListType().equals(
                  ListOf.Type.listOfReactants)) {
                reaction.addReactant(speciesReference);

                return speciesReference;
              } else if (list.getSBaseListType().equals(
                  ListOf.Type.listOfProducts)) {
                reaction.addProduct(speciesReference);
View Full Code Here

Examples of org.sbml.jsbml.Reaction.addReactant()

            if (elementName.equals("specieReference")) {
              SpeciesReference speciesReference = (SpeciesReference) newContextObject;

              if (list.getSBaseListType().equals(
                  ListOf.Type.listOfReactants)) {
                reaction.addReactant(speciesReference);

                return speciesReference;
              } else if (list.getSBaseListType().equals(
                  ListOf.Type.listOfProducts)) {
                reaction.addProduct(speciesReference);
View Full Code Here

Examples of org.sbml.jsbml.Reaction.addReactant()

    fd.setMath(math);
    System.out.println(math.toMathML());
   
    Species species = m.createSpecies("spec");
    Reaction r = m.createReaction("r");
    r.addReactant(new SpeciesReference(species));
    KineticLaw kl = new KineticLaw(level, version);
    math = new ASTNode(fd, kl);
    math.addChild(new ASTNode(species, kl));
    math = ASTNode.times(math, new ASTNode(3.7, 8, kl));
    kl.setMath(math);
View Full Code Here

Examples of org.sbml.jsbml.Reaction.addReactant()

    SBMLDocument doc=new SBMLDocument(2,4);
    Model m=doc.createModel("model1");
    Reaction r = m.createReaction("id1");
    SpeciesReference s = new SpeciesReference();
    s.setMetaId("meta2");
    r.addReactant(s);
    r.setMetaId("meta");

    System.out.println("Reaction parent and model                    : " + r.getParent() + " " + r.getModel() + "\n");

    Reaction clonedReaction = r.clone();
View Full Code Here

Examples of org.sbml.jsbml.Reaction.addReactant()

              SpeciesReference speciesReference = (SpeciesReference) newContextObject;
              speciesReference.initDefaults();

              if (list.getSBaseListType().equals(
                  ListOf.Type.listOfReactants)) {
                reaction.addReactant(speciesReference);

                return speciesReference;
              } else if (list.getSBaseListType().equals(
                  ListOf.Type.listOfProducts)) {
                reaction.addProduct(speciesReference);
View Full Code Here

Examples of org.sbml.jsbml.Reaction.addReactant()

              SpeciesReference speciesReference = (SpeciesReference) newContextObject;
              speciesReference.initDefaults();

              if (list.getSBaseListType().equals(
                  ListOf.Type.listOfReactants)) {
                reaction.addReactant(speciesReference);

                return speciesReference;
              } else if (list.getSBaseListType().equals(
                  ListOf.Type.listOfProducts)) {
                reaction.addProduct(speciesReference);
View Full Code Here

Examples of org.sbml.jsbml.Reaction.addReactant()

    fd.setMath(math);
    System.out.println(math.toMathML());
   
    Species species = m.createSpecies("spec");
    Reaction r = m.createReaction("r");
    r.addReactant(new SpeciesReference(species));
    KineticLaw kl = new KineticLaw(level, version);
    math = new ASTNode(fd, kl);
    math.addChild(new ASTNode(species, kl));
    math = ASTNode.times(math, new ASTNode(3.7, 8, kl));
    kl.setMath(math);
View Full Code Here

Examples of org.sbml.jsbml.Reaction.addReactant()

            if (elementName.equals("specieReference")) {
              SpeciesReference speciesReference = (SpeciesReference) newContextObject;

              if (list.getSBaseListType().equals(
                  ListOf.Type.listOfReactants)) {
                reaction.addReactant(speciesReference);

                return speciesReference;
              } else if (list.getSBaseListType().equals(
                  ListOf.Type.listOfProducts)) {
                reaction.addProduct(speciesReference);
View Full Code Here

Examples of reaction.Reaction.addReactant()

  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);
View Full Code Here

Examples of reaction.Reaction.addReactant()

  {
    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);
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.