public getListOfSpeciesTypes ( ) : |
||
return |
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() ); }
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_add() { SpeciesType ia = new SpeciesType(2,4); ia.setId("s"); Model m = new Model(2,4); m.addSpeciesType(ia); ia = null; ListOf lo = m.getListOfSpeciesTypes(); assertTrue( lo == m.getSpeciesType(0).getParentSBMLObject() ); assertTrue( m == lo.getParentSBMLObject() ); }
public void test_SpeciesType_ancestor_add() { SpeciesType ia = new SpeciesType(2,4); Model m = new Model(2,4); ia.setId("s"); m.addSpeciesType(ia); ia = null; ListOf lo = m.getListOfSpeciesTypes(); 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 ); }