createSpeciesType() public method

public createSpeciesType ( ) : SpeciesType
return SpeciesType
Exemplo n.º 1
0
 public void test_SpeciesType_ancestor_create()
 {
     Model m = new Model(2,4);
       SpeciesType st = m.createSpeciesType();
       ListOf lo = m.getListOfSpeciesTypes();
       assertTrue( st.getAncestorOfType(libsbml.SBML_MODEL) == m );
       assertTrue( st.getAncestorOfType(libsbml.SBML_LIST_OF) == lo );
       assertTrue( st.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( st.getAncestorOfType(libsbml.SBML_EVENT) == null );
       SpeciesType obj = m.getSpeciesType(0);
       assertTrue( obj.getAncestorOfType(libsbml.SBML_MODEL) == m );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_LIST_OF) == lo );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_EVENT) == null );
 }
 public void test_SpeciesType_parent_create()
 {
     Model m = new Model(2,4);
       SpeciesType st = m.createSpeciesType();
       ListOf lo = m.getListOfSpeciesTypes();
       assertTrue( lo == m.getSpeciesType(0).getParentSBMLObject() );
       assertTrue( lo == st.getParentSBMLObject() );
       assertTrue( m == lo.getParentSBMLObject() );
 }
Exemplo n.º 3
0
 public void test_Model_createSpeciesType()
 {
     Model m = new  Model(2,2);
       SpeciesType p = m.createSpeciesType();
       assertTrue( m.getNumSpeciesTypes() == 1 );
       assertTrue( (p).getLevel() == 2 );
       assertTrue( (p).getVersion() == 2 );
       m = null;
 }