setSpatialSizeUnits() public method

public setSpatialSizeUnits ( string sid ) : int
sid string
return int
コード例 #1
0
 public void test_internal_consistency_check_99917()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Species s = new Species(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       Compartment c = m.createCompartment();
       c.setId("c");
       s.setId("s");
       s.setCompartment("c");
       s.setSpatialSizeUnits("kkk");
       m.addSpecies(s);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
コード例 #2
0
 public void test_Species_setSpatialSizeUnits2()
 {
     Species c = new  Species(2,2);
       int i = c.setSpatialSizeUnits( "1cell");
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertEquals( false, c.isSetSpatialSizeUnits() );
       c = null;
 }
コード例 #3
0
 public void test_Species_setSpatialSizeUnits4()
 {
     Species c = new  Species(2,2);
       int i = c.setSpatialSizeUnits("");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetSpatialSizeUnits() );
       c = null;
 }
コード例 #4
0
ファイル: TestSpecies.cs プロジェクト: mgaldzic/copasi_api
 public void test_Species_setSpatialSizeUnits()
 {
     Species s = new  Species(2,1);
       string units =  "volume";
       s.setSpatialSizeUnits(units);
       assertTrue(( units == s.getSpatialSizeUnits() ));
       assertEquals( true, s.isSetSpatialSizeUnits() );
       if (s.getSpatialSizeUnits() == units);
       {
       }
       s.setSpatialSizeUnits(s.getSpatialSizeUnits());
       assertTrue(( units == s.getSpatialSizeUnits() ));
       s.setSpatialSizeUnits("");
       assertEquals( false, s.isSetSpatialSizeUnits() );
       if (s.getSpatialSizeUnits() != null);
       {
       }
       s = null;
 }