当前位置: 首页>>代码示例>>C#>>正文


C# SpeciesReference.getSpecies方法代码示例

本文整理汇总了C#中libsbmlcs.SpeciesReference.getSpecies方法的典型用法代码示例。如果您正苦于以下问题:C# SpeciesReference.getSpecies方法的具体用法?C# SpeciesReference.getSpecies怎么用?C# SpeciesReference.getSpecies使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在libsbmlcs.SpeciesReference的用法示例。


在下文中一共展示了SpeciesReference.getSpecies方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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;
 }
开发者ID:alexholehouse,项目名称:SBMLIntegrator,代码行数:27,代码来源:TestL3SpeciesReference.cs

示例2: test_Reaction_getReactant

 public void test_Reaction_getReactant()
 {
     SpeciesReference sr1 = new  SpeciesReference(2,4);
       SpeciesReference sr2 = new  SpeciesReference(2,4);
       sr1.setSpecies( "R1");
       sr2.setSpecies( "R2");
       R.addReactant(sr1);
       R.addReactant(sr2);
       sr1 = null;
       sr2 = null;
       assertTrue( R.getNumReactants() == 2 );
       assertTrue( R.getNumProducts() == 0 );
       assertTrue( R.getNumModifiers() == 0 );
       sr1 = R.getReactant(0);
       sr2 = R.getReactant(1);
       assertTrue((  "R1" == sr1.getSpecies() ));
       assertTrue((  "R2" == sr2.getSpecies() ));
 }
开发者ID:alexholehouse,项目名称:SBMLIntegrator,代码行数:18,代码来源:TestReaction.cs

示例3: test_SpeciesReference_setSpecies3

 public void test_SpeciesReference_setSpecies3()
 {
     SpeciesReference c = new  SpeciesReference(2,2);
       int i = c.setSpecies( "mole");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue((  "mole" == c.getSpecies() ));
       assertEquals( true, c.isSetSpecies() );
       c = null;
 }
开发者ID:0u812,项目名称:roadrunner-backup,代码行数:9,代码来源:TestSpeciesReference_newSetters.cs


注:本文中的libsbmlcs.SpeciesReference.getSpecies方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。