createStoichiometryMath() public method

public createStoichiometryMath ( ) : StoichiometryMath
return 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 );
 }