Package org.sbml.jsbml

Examples of org.sbml.jsbml.SpeciesType


    assertTrue(M.getSpecies(0).equals(s) == true);
  }

  @Test
  public void test_Model_createSpeciesType() {
    SpeciesType c = M.createSpeciesType();
    assertTrue(c != null);
    assertTrue(M.getNumSpeciesTypes() == 1);
    assertEquals(M.getSpeciesType(0), c);
  }
View Full Code Here


    o3 = null;
  }

  @Test
  public void test_Model_removeSpeciesType() {
    SpeciesType o1, o2, o3;
    o1 = M.createSpeciesType();
    o2 = M.createSpeciesType();
    o3 = M.createSpeciesType();
    o3.setId("test");
    assertTrue(M.removeSpeciesType(0).equals(o1));
View Full Code Here

  private void setSpeciesSpeciesType(Species species, Model model) {

    if (species.isSetSpeciesType()) {
      String speciesTypeID = species.getSpeciesType();

      SpeciesType speciesType = model.getSpeciesType(speciesTypeID);

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

TOP

Related Classes of org.sbml.jsbml.SpeciesType

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.