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


C# SBMLDocument.checkInternalConsistency方法代码示例

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


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

示例1: test_internal_consistency_check_99902

 public void test_internal_consistency_check_99902()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Compartment c = new Compartment(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       c.setCompartmentType("hh");
       c.setId("c");
       m.addCompartment(c);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 1 );
       assertTrue( d.getError(0).getErrorId() == 10103 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:15,代码来源:TestInternalConsistencyChecks.cs

示例2: test_internal_consistency_check_99903_param

 public void test_internal_consistency_check_99903_param()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Parameter p = new Parameter(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       Compartment c = m.createCompartment();
       c.setId("cc");
       p.setConstant(true);
       p.setId("c");
       m.addParameter(p);
       Rule r = m.createAssignmentRule();
       r.setVariable("c");
       r.setFormula("2*3");
       errors = d.checkInternalConsistency();
       assertTrue( errors == 2 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:19,代码来源:TestInternalConsistencyChecks.cs

示例3: test_internal_consistency_check_99903_localparam

 public void test_internal_consistency_check_99903_localparam()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Parameter p = new Parameter(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       Compartment c = m.createCompartment();
       c.setId("cc");
       Reaction r = m.createReaction();
       r.setId("r");
       KineticLaw kl = r.createKineticLaw();
       kl.setFormula("2");
       p.setId("p");
       p.setConstant(false);
       kl.addParameter(p);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:20,代码来源:TestInternalConsistencyChecks.cs

示例4: test_internal_consistency_check_99916_rule

 public void test_internal_consistency_check_99916_rule()
 {
     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.setConstant(true);
       m.addSpecies(s);
       Rule r = m.createAssignmentRule();
       r.setVariable("s");
       r.setFormula("2");
       errors = d.checkInternalConsistency();
       assertTrue( errors == 2 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:20,代码来源:TestInternalConsistencyChecks.cs

示例5: test_internal_consistency_check_99915_alg

 public void test_internal_consistency_check_99915_alg()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Model m = d.createModel();
       Rule r = new AlgebraicRule(2,4);
       d.setLevelAndVersion(2,1,false);
       r.setUnits("kk");
       m.addRule(r);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:13,代码来源:TestInternalConsistencyChecks.cs

示例6: test_internal_consistency_check_99912

 public void test_internal_consistency_check_99912()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       FunctionDefinition fd = new FunctionDefinition(2,4);
       Model m = d.createModel();
       d.setLevelAndVersion(1,2,false);
       Compartment c = m.createCompartment();
       c.setId("cc");
       c.setConstant(false);
       m.addFunctionDefinition(fd);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:15,代码来源:TestInternalConsistencyChecks.cs

示例7: test_internal_consistency_check_99911_react

 public void test_internal_consistency_check_99911_react()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Model m = d.createModel();
       Reaction r = new Reaction(2,4);
       d.setLevelAndVersion(2,1,false);
       r.setId("r");
       r.setSBOTerm(2);
       m.addReaction(r);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:14,代码来源:TestInternalConsistencyChecks.cs

示例8: test_internal_consistency_check_99911_model

 public void test_internal_consistency_check_99911_model()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       d.setLevelAndVersion(2,1,false);
       Model m = new Model(2,4);
       m.setSBOTerm(2);
       d.setModel(m);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 1 );
       assertTrue( d.getError(0).getErrorId() == 20201 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:13,代码来源:TestInternalConsistencyChecks.cs

示例9: test_internal_consistency_check_99905_st

 public void test_internal_consistency_check_99905_st()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       SpeciesType ct = new SpeciesType(2,4);
       Model m = d.createModel();
       d.setLevelAndVersion(2,2,false);
       ct.setId("st");
       ct.setSBOTerm(5);
       m.addSpeciesType(ct);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:14,代码来源:TestInternalConsistencyChecks.cs

示例10: test_internal_consistency_check_99904_unitdef

 public void test_internal_consistency_check_99904_unitdef()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       UnitDefinition u = new UnitDefinition(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       Compartment c = m.createCompartment();
       c.setId("cc");
       u.setId("ud");
       u.setMetaId("mmm");
       u.createUnit();
       m.addUnitDefinition(u);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:17,代码来源:TestInternalConsistencyChecks.cs

示例11: test_internal_consistency_check_99904_rule_rate

 public void test_internal_consistency_check_99904_rule_rate()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Rule r = new RateRule(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       Compartment c = m.createCompartment();
       c.setId("cc");
       c.setConstant(false);
       r.setVariable("cc");
       r.setFormula("2");
       r.setMetaId("mmm");
       m.addRule(r);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:18,代码来源:TestInternalConsistencyChecks.cs

示例12: test_internal_consistency_check_99904_react

 public void test_internal_consistency_check_99904_react()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Reaction r = new Reaction(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       Compartment c = m.createCompartment();
       c.setId("cc");
       r.setId("r");
       r.setMetaId("mmm");
       m.addReaction(r);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:16,代码来源:TestInternalConsistencyChecks.cs

示例13: test_internal_consistency_check_99904_param

 public void test_internal_consistency_check_99904_param()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Parameter p = new Parameter(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       Compartment c = m.createCompartment();
       c.setId("cc");
       p.setId("p");
       p.setMetaId("mmm");
       m.addParameter(p);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:16,代码来源:TestInternalConsistencyChecks.cs

示例14: test_internal_consistency_check_99904_model

 public void test_internal_consistency_check_99904_model()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       d.setLevelAndVersion(1,2,false);
       Model m = new Model(2,4);
       Compartment c = m.createCompartment();
       c.setId("cc");
       m.setMetaId("mmm");
       d.setModel(m);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 1 );
       assertTrue( d.getError(0).getErrorId() == 20201 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:15,代码来源:TestInternalConsistencyChecks.cs

示例15: test_internal_consistency_check_99904_kl

 public void test_internal_consistency_check_99904_kl()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       KineticLaw kl = new KineticLaw(2,4);
       Model m = d.createModel();
       d.setLevelAndVersion(1,2,false);
       Compartment c = m.createCompartment();
       c.setId("cc");
       Reaction r = m.createReaction();
       r.setId("r");
       kl.setFormula("2");
       kl.setMetaId("mmm");
       r.setKineticLaw(kl);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }
开发者ID:mgaldzic,项目名称:copasi_api,代码行数:18,代码来源:TestInternalConsistencyChecks.cs


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