isSetStoichiometryMath() public méthode

public isSetStoichiometryMath ( ) : bool
Résultat bool
Exemple #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;
 }
 public void test_SpeciesReference_setStoichiometryMath5()
 {
     SpeciesReference sr1 = new  SpeciesReference(1,2);
       StoichiometryMath sm = new  StoichiometryMath(2,4);
       ASTNode math = new  ASTNode(libsbml.AST_TIMES);
       ASTNode a = new  ASTNode();
       ASTNode b = new  ASTNode();
       a.setName( "a");
       b.setName( "b");
       math.addChild(a);
       math.addChild(b);
       sm.setMath(math);
       int i = sr1.setStoichiometryMath(sm);
       assertTrue( i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE );
       assertEquals( false, sr1.isSetStoichiometryMath() );
       sm = null;
       sr1 = null;
 }