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;
 }