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


C# Model.getVersion方法代碼示例

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


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

示例1: test_Model_createWithNS

 public void test_Model_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,1);
       sbmlns.addNamespaces(xmlns);
       Model object1 = new  Model(sbmlns);
       assertTrue( object1.getTypeCode() == libsbml.SBML_MODEL );
       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;
 }
開發者ID:mgaldzic,項目名稱:copasi_api,代碼行數:17,代碼來源:TestModel.cs

示例2: SBML_Model

        /// <summary>
        /// 
        /// </summary>
        /// <param name="aSBMLmodel"></param>
        public SBML_Model(Model aSBMLmodel)
        {
            this.CompartmentSize = new Dictionary<string,double>();
            this.CompartmentUnit = new Dictionary<string,string>();
            this.FunctionDefinition = new Dictionary<string, string>();

            this.Level = aSBMLmodel.getLevel();
            this.Version = aSBMLmodel.getVersion();

            this.CompartmentList = SbmlFunctions.getCompartment(aSBMLmodel);
            this.EventList = SbmlFunctions.getEvent(aSBMLmodel);
            this.FunctionDefinitionList = SbmlFunctions.getFunctionDefinition(aSBMLmodel);
            this.ParameterList = SbmlFunctions.getParameter(aSBMLmodel);
            this.ReactionList = SbmlFunctions.getReaction(aSBMLmodel);
            this.RuleList = SbmlFunctions.getRule(aSBMLmodel);
            this.SpeciesList = SbmlFunctions.getSpecies(aSBMLmodel);
            this.UnitDefinitionList = SbmlFunctions.getUnitDefinition(aSBMLmodel);
            this.InitialAssignmentList = SbmlFunctions.getInitialAssignments(aSBMLmodel);
            this.setFunctionDefinitionToDictionary();
        }
開發者ID:ecell,項目名稱:ecell3-ide,代碼行數:24,代碼來源:SBML_Model.cs

示例3: test_L3_Model_createWithNS

 public void test_L3_Model_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(3,1);
       sbmlns.addNamespaces(xmlns);
       Model m = new  Model(sbmlns);
       assertTrue( m.getTypeCode() == libsbml.SBML_MODEL );
       assertTrue( m.getMetaId() == "" );
       assertTrue( m.getNotes() == null );
       assertTrue( m.getAnnotation() == null );
       assertTrue( m.getLevel() == 3 );
       assertTrue( m.getVersion() == 1 );
       assertTrue( m.getNamespaces() != null );
       assertTrue( m.getNamespaces().getLength() == 2 );
       assertTrue( m.getId() == "" );
       assertTrue( m.getName() == "" );
       assertTrue( m.getSubstanceUnits() == "" );
       assertTrue( m.getTimeUnits() == "" );
       assertTrue( m.getVolumeUnits() == "" );
       assertTrue( m.getAreaUnits() == "" );
       assertTrue( m.getLengthUnits() == "" );
       assertTrue( m.getConversionFactor() == "" );
       assertEquals( false, m.isSetId() );
       assertEquals( false, m.isSetName() );
       assertEquals( false, m.isSetSubstanceUnits() );
       assertEquals( false, m.isSetTimeUnits() );
       assertEquals( false, m.isSetVolumeUnits() );
       assertEquals( false, m.isSetAreaUnits() );
       assertEquals( false, m.isSetLengthUnits() );
       assertEquals( false, m.isSetConversionFactor() );
       m = null;
 }
開發者ID:mgaldzic,項目名稱:copasi_api,代碼行數:33,代碼來源:TestL3Model.cs


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