本文整理汇总了C#中libsbmlcs.Species.setSpatialSizeUnits方法的典型用法代码示例。如果您正苦于以下问题:C# Species.setSpatialSizeUnits方法的具体用法?C# Species.setSpatialSizeUnits怎么用?C# Species.setSpatialSizeUnits使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类libsbmlcs.Species
的用法示例。
在下文中一共展示了Species.setSpatialSizeUnits方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: test_Species_setSpatialSizeUnits4
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;
}
示例2: test_internal_consistency_check_99917
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;
}
示例3: test_Species_setSpatialSizeUnits2
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;
}
示例4: test_Species_setSpatialSizeUnits
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;
}