getStoichiometryMath() 공개 메소드

public getStoichiometryMath ( ) : StoichiometryMath
리턴 StoichiometryMath
예제 #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="aSpeciesReference"></param>
 /// <returns></returns>
 public static string GetStoichiometryMath(SpeciesReference aSpeciesReference)
 {
     string aString_R = null;
     if (aSpeciesReference.isSetStoichiometryMath())
     {
         ASTNode anASTNode_R = aSpeciesReference.getStoichiometryMath().getMath();
         aString_R = libsbml.libsbml.formulaToString(anASTNode_R);
     }
     return aString_R;
 }
예제 #2
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 );
 }
예제 #3
0
 public void test_StoichiometryMath_parent_add()
 {
     StoichiometryMath m = new StoichiometryMath(2,4);
       SpeciesReference sr = new SpeciesReference(2,4);
       sr.setStoichiometryMath(m);
       m = null;
       assertTrue( sr == sr.getStoichiometryMath().getParentSBMLObject() );
       sr = null;
 }
예제 #4
0
 public void test_StoichiometryMath_ancestor_add()
 {
     StoichiometryMath m = new StoichiometryMath(2,4);
       SpeciesReference sr = new SpeciesReference(2,4);
       sr.setStoichiometryMath(m);
       m = null;
       StoichiometryMath obj = sr.getStoichiometryMath();
       assertTrue( obj.getAncestorOfType(libsbml.SBML_SPECIES_REFERENCE) == sr );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_MODEL) == null );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       sr = null;
 }