Package org.sbml.jsbml

Examples of org.sbml.jsbml.SpeciesReference


    if (eventAssignment.isSetVariable()) {
      String variableID = eventAssignment.getVariable();

      Compartment compartment = model.getCompartment(variableID);
      Species species = null;
      SpeciesReference speciesReference = null;
      Parameter parameter = null;

      if (compartment == null) {
        species = model.getSpecies(variableID);

        if (species == null) {
          parameter = model.getParameter(variableID);

          if (parameter == null) {
            if (model.isSetListOfReactions()) {

              int i = 0;
              SpeciesReference sr = null;

              while (i <= model.getNumReactions() - 1
                  && sr == null) {
                Reaction reaction = model.getReaction(i);
View Full Code Here


    if (initialAssignment.isSetVariable()) {
      String variableID = initialAssignment.getVariable();

      Compartment compartment = model.getCompartment(variableID);
      Species species = null;
      SpeciesReference speciesReference = null;
      Parameter parameter = null;

      if (compartment == null) {
        species = model.getSpecies(variableID);

        if (species == null) {
          parameter = model.getParameter(variableID);

          if (parameter == null) {
            if (model.isSetListOfReactions()) {

              int i = 0;
              SpeciesReference sr = null;

              while (i <= model.getNumReactions() - 1
                  && sr == null) {
                Reaction reaction = model.getReaction(i);
View Full Code Here

    if (rule.isSetVariable()) {
      String variableID = rule.getVariable();

      Compartment compartment = model.getCompartment(variableID);
      Species species = null;
      SpeciesReference speciesReference = null;
      Parameter parameter = null;

      if (compartment == null) {
        species = model.getSpecies(variableID);

        if (species == null) {
          parameter = model.getParameter(variableID);

          if (parameter == null) {
            if (model.isSetListOfReactions()) {

              int i = 0;
              SpeciesReference sr = null;

              while (i <= model.getNumReactions() - 1
                  && sr == null) {
                Reaction reaction = model.getReaction(i);
View Full Code Here

    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

    /*
     * Reactions
     */
    logger.debug("==== Reactions ====");
    Reaction r2 = new Reaction(level, version);
    SpeciesReference sr1 = r2.createReactant(s1);
    sr1.setId("sr1");
    r2.createModifier(p1);
    r2.setId("r2");
    model.addReaction(r2);
   
    /*
 
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.SpeciesReference

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.