getSize() public method

public getSize ( ) : double
return double
 public void test_Compartment_setSize2()
 {
     Compartment c = new  Compartment(2,2);
       int i = c.setSize(4);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( c.getSize() == 4 );
       assertEquals( true, c.isSetSize() );
       i = c.unsetSize();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetSize() );
       c = null;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="item"></param>
 /// <returns></returns>
 public static double GetCompartmentSize(Compartment item)
 {
     double aSize;
     if (item.isSetSize())
         aSize = item.getSize();
     else
         aSize = double.NaN;
     return aSize;
 }