createStoichiometryMath() 공개 메소드

public createStoichiometryMath ( ) : StoichiometryMath
리턴 StoichiometryMath
예제 #1
0
 public void test_StoichiometryMath_ancestor_create()
 {
     SpeciesReference sr = new SpeciesReference(2,4);
       StoichiometryMath sm = sr.createStoichiometryMath();
       assertTrue( sm.getAncestorOfType(libsbml.SBML_SPECIES_REFERENCE) == sr );
       assertTrue( sm.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( sm.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null );
       StoichiometryMath obj = sr.getStoichiometryMath();
       assertTrue( obj.getAncestorOfType(libsbml.SBML_SPECIES_REFERENCE) == sr );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null );
 }