本文整理汇总了C#中libsbmlcs.SpeciesReference.getTypeCode方法的典型用法代码示例。如果您正苦于以下问题:C# SpeciesReference.getTypeCode方法的具体用法?C# SpeciesReference.getTypeCode怎么用?C# SpeciesReference.getTypeCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类libsbmlcs.SpeciesReference
的用法示例。
在下文中一共展示了SpeciesReference.getTypeCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: test_SpeciesReference_createWithNS
public void test_SpeciesReference_createWithNS()
{
XMLNamespaces xmlns = new XMLNamespaces();
xmlns.add( "http://www.sbml.org", "testsbml");
SBMLNamespaces sbmlns = new SBMLNamespaces(2,1);
sbmlns.addNamespaces(xmlns);
SpeciesReference object1 = new SpeciesReference(sbmlns);
assertTrue( object1.getTypeCode() == libsbml.SBML_SPECIES_REFERENCE );
assertTrue( object1.getMetaId() == "" );
assertTrue( object1.getNotes() == null );
assertTrue( object1.getAnnotation() == null );
assertTrue( object1.getLevel() == 2 );
assertTrue( object1.getVersion() == 1 );
assertTrue( object1.getNamespaces() != null );
assertTrue( object1.getNamespaces().getLength() == 2 );
object1 = null;
}
示例2: test_L3_SpeciesReference_createWithNS
public void test_L3_SpeciesReference_createWithNS()
{
XMLNamespaces xmlns = new XMLNamespaces();
xmlns.add( "http://www.sbml.org", "testsbml");
SBMLNamespaces sbmlns = new SBMLNamespaces(3,1);
sbmlns.addNamespaces(xmlns);
SpeciesReference sr = new SpeciesReference(sbmlns);
assertTrue( sr.getTypeCode() == libsbml.SBML_SPECIES_REFERENCE );
assertTrue( sr.getMetaId() == "" );
assertTrue( sr.getNotes() == null );
assertTrue( sr.getAnnotation() == null );
assertTrue( sr.getLevel() == 3 );
assertTrue( sr.getVersion() == 1 );
assertTrue( sr.getNamespaces() != null );
assertTrue( sr.getNamespaces().getLength() == 2 );
assertTrue( sr.getId() == "" );
assertTrue( sr.getName() == "" );
assertTrue( sr.getSpecies() == "" );
assertEquals( true, isnan(sr.getStoichiometry()) );
assertTrue( sr.getConstant() == false );
assertEquals( false, sr.isSetId() );
assertEquals( false, sr.isSetName() );
assertEquals( false, sr.isSetSpecies() );
assertEquals( false, sr.isSetStoichiometry() );
assertEquals( false, sr.isSetConstant() );
sr = null;
}