Package org.sbml.jsbml

Examples of org.sbml.jsbml.ModifierSpeciesReference


              setSpeciesReferenceSpecies(speciesReference, model);
            }
          }
          if (reaction.isSetListOfModifiers()) {
            for (int j = 0; j < reaction.getNumModifiers(); j++) {
              ModifierSpeciesReference modifierSpeciesReference = reaction
                  .getModifier(j);

              setSpeciesReferenceSpecies(
                  modifierSpeciesReference, model);
            }
View Full Code Here


  }

  @Test
  public void test_Model_createModifier() {
    Reaction r;
    ModifierSpeciesReference msr;
    M.createReaction();
    M.createReaction();
    msr = M.createModifier();
    assertTrue(msr != null);
    assertTrue(M.getNumReactions() == 2);
View Full Code Here

              }
            }
          }
          if (reaction.isSetListOfModifiers()) {
            for (int j = 0; j < reaction.getNumModifiers(); j++) {
              ModifierSpeciesReference modifierSpeciesReference = reaction
                  .getModifier(j);

              if (modifierSpeciesReference.isSetSpecies()
                  && !modifierSpeciesReference
                      .isSetSpeciesInstance()) {
                log4jLogger.warn(String.format("No Species matches the speciesID '%s' of %s.",
                    modifierSpeciesReference.getId(), modifierSpeciesReference.getElementName()));
              }
            }
          }
          if (reaction.isSetKineticLaw()) {
            KineticLaw kineticLaw = reaction.getKineticLaw();
View Full Code Here

            } else if (elementName
                .equals("modifierSpeciesReference")
                && list.getSBaseListType().equals(
                    ListOf.Type.listOfModifiers)
                && reaction.getLevel() > 1) {
              ModifierSpeciesReference modifierSpeciesReference = (ModifierSpeciesReference) newContextObject;
              reaction.addModifier(modifierSpeciesReference);

              return modifierSpeciesReference;
            } else {
              log4jLogger.warn("The element " + elementName + " is not recognized");
View Full Code Here

              setSpeciesReferenceSpecies(speciesReference, model);
            }
          }
          if (reaction.isSetListOfModifiers()) {
            for (int j = 0; j < reaction.getNumModifiers(); j++) {
              ModifierSpeciesReference modifierSpeciesReference = reaction
                  .getModifier(j);

              setSpeciesReferenceSpecies(
                  modifierSpeciesReference, model);
            }
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.ModifierSpeciesReference

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.