當前位置: 首頁>>代碼示例>>C#>>正文


C# Species.setSpeciesType方法代碼示例

本文整理匯總了C#中libsbmlcs.Species.setSpeciesType方法的典型用法代碼示例。如果您正苦於以下問題:C# Species.setSpeciesType方法的具體用法?C# Species.setSpeciesType怎麽用?C# Species.setSpeciesType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在libsbmlcs.Species的用法示例。


在下文中一共展示了Species.setSpeciesType方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: test_Species_setSpeciesType4

 public void test_Species_setSpeciesType4()
 {
     Species c = new  Species(2,2);
       int i = c.setSpeciesType( "cell");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( true, c.isSetSpeciesType() );
       assertTrue((  "cell"  == c.getSpeciesType() ));
       i = c.setSpeciesType("");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetSpeciesType() );
       c = null;
 }
開發者ID:alexholehouse,項目名稱:SBMLIntegrator,代碼行數:12,代碼來源:TestSpecies_newSetters.cs

示例2: test_internal_consistency_check_99918

 public void test_internal_consistency_check_99918()
 {
     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.setSpeciesType("kkk");
       m.addSpecies(s);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
開發者ID:alexholehouse,項目名稱:SBMLIntegrator,代碼行數:17,代碼來源:TestInternalConsistencyChecks.cs

示例3: test_Species_setSpeciesType2

 public void test_Species_setSpeciesType2()
 {
     Species c = new  Species(2,2);
       int i = c.setSpeciesType( "1cell");
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertEquals( false, c.isSetSpeciesType() );
       i = c.unsetSpeciesType();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetSpeciesType() );
       c = null;
 }
開發者ID:alexholehouse,項目名稱:SBMLIntegrator,代碼行數:11,代碼來源:TestSpecies_newSetters.cs

示例4: test_Species_copyConstructor

 public void test_Species_copyConstructor()
 {
     Species o1 = new Species(2,4);
       o1.setId("c");
       o1.setSpeciesType("c1");
       assertTrue( o1.getId() ==  "c" );
       assertEquals(o1.getSpeciesType(), "c1");
       Species o2 = new Species(o1);
       assertTrue( o2.getId() ==  "c" );
       assertEquals(o2.getSpeciesType(), "c1");
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }
開發者ID:TotteKarlsson,項目名稱:roadrunner,代碼行數:14,代碼來源:TestCopyAndClone.cs


注:本文中的libsbmlcs.Species.setSpeciesType方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。