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


C# libsbml.SBMLNamespaces類代碼示例

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


SBMLNamespaces類屬於libsbml命名空間,在下文中一共展示了SBMLNamespaces類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: test_SBMLNamespaces_L2V1

 public void test_SBMLNamespaces_L2V1()
 {
     SBMLNamespaces sbml = new SBMLNamespaces(2,1);
       assertTrue( sbml.getLevel() == 2 );
       assertTrue( sbml.getVersion() == 1 );
       XMLNamespaces ns = sbml.getNamespaces();
       assertTrue( ns.getLength() == 1 );
       assertTrue( ns.getURI(0) ==  "http://www.sbml.org/sbml/level2" );
       assertTrue( ns.getPrefix(0) ==  "" );
       sbml = null;
 }
開發者ID:mgaldzic,項目名稱:copasi_api,代碼行數:11,代碼來源:TestSBMLNamespaces.cs

示例2: test_RateRule_createWithNS

 public void test_RateRule_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,1);
       sbmlns.addNamespaces(xmlns);
       Rule object1 = new  RateRule(sbmlns);
       assertTrue( object1.getTypeCode() == libsbml.SBML_RATE_RULE );
       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,代碼來源:TestRateRule.cs

示例3: test_StoichiometryMath_createWithNS

 public void test_StoichiometryMath_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,1);
       sbmlns.addNamespaces(xmlns);
       StoichiometryMath object1 = new  StoichiometryMath(sbmlns);
       assertTrue( object1.getTypeCode() == libsbml.SBML_STOICHIOMETRY_MATH );
       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,代碼來源:TestStoichiometryMath.cs

示例4: test_CompartmentType_createWithNS

 public void test_CompartmentType_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,2);
       sbmlns.addNamespaces(xmlns);
       CompartmentType object1 = new  CompartmentType(sbmlns);
       assertTrue( object1.getTypeCode() == libsbml.SBML_COMPARTMENT_TYPE );
       assertTrue( object1.getMetaId() == "" );
       assertTrue( object1.getNotes() == null );
       assertTrue( object1.getAnnotation() == null );
       assertTrue( object1.getLevel() == 2 );
       assertTrue( object1.getVersion() == 2 );
       assertTrue( object1.getNamespaces() != null );
       assertTrue( object1.getNamespaces().getLength() == 2 );
       object1 = null;
 }
開發者ID:mgaldzic,項目名稱:copasi_api,代碼行數:17,代碼來源:TestCompartmentType.cs

示例5: 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;
 }
開發者ID:mgaldzic,項目名稱:copasi_api,代碼行數:17,代碼來源:TestSpeciesReference.cs

示例6: test_EventAssignment_createWithNS

 public void test_EventAssignment_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,1);
       sbmlns.addNamespaces(xmlns);
       EventAssignment object1 = new  EventAssignment(sbmlns);
       assertTrue( object1.getTypeCode() == libsbml.SBML_EVENT_ASSIGNMENT );
       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,代碼來源:TestEventAssignment.cs

示例7: test_Parameter_createWithNS

 public void test_Parameter_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,1);
       sbmlns.addNamespaces(xmlns);
       Parameter object1 = new  Parameter(sbmlns);
       assertTrue( object1.getTypeCode() == libsbml.SBML_PARAMETER );
       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,代碼來源:TestParameter.cs

示例8: test_L3_Event_createWithNS

 public void test_L3_Event_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(3,1);
       sbmlns.addNamespaces(xmlns);
       Event e = new  Event(sbmlns);
       assertTrue( e.getTypeCode() == libsbml.SBML_EVENT );
       assertTrue( e.getMetaId() == "" );
       assertTrue( e.getNotes() == null );
       assertTrue( e.getAnnotation() == null );
       assertTrue( e.getLevel() == 3 );
       assertTrue( e.getVersion() == 1 );
       assertTrue( e.getNamespaces() != null );
       assertTrue( e.getNamespaces().getLength() == 2 );
       assertTrue( e.getId() == "" );
       assertTrue( e.getName() == "" );
       assertTrue( e.getUseValuesFromTriggerTime() == true );
       assertEquals( false, e.isSetId() );
       assertEquals( false, e.isSetName() );
       assertEquals( false, e.isSetUseValuesFromTriggerTime() );
       e = null;
 }
開發者ID:mgaldzic,項目名稱:copasi_api,代碼行數:23,代碼來源:TestL3Event.cs

示例9: AssignmentRule

 /**
    * Creates a new AssignmentRule using the given SBMLNamespaces object
    * @p sbmlns.
    *
    * The SBMLNamespaces object encapsulates SBML Level/Version/namespaces
    * information.  It is used to communicate the SBML Level, Version, and
    * (in Level 3) packages used in addition to SBML Level 3 Core.
    * A common approach to using this class constructor is to create an
    * SBMLNamespaces object somewhere in a program, once, then pass it to
    * object constructors such as this one when needed.
    *
    * @param sbmlns an SBMLNamespaces object.
    *
    * @throws @if python ValueError @else SBMLConstructorException @endif
    * Thrown if the given @p level and @p version combination, or this kind
    * of SBML object, are either invalid or mismatched with respect to the
    * parent SBMLDocument object.
    *
    * *
  * @note Upon the addition of an AssignmentRule object to an SBMLDocument
  * (e.g., using Model::addRule(@if java Rule [email protected])), the SBML Level, SBML
  * Version and XML namespace of the document @em override the values used
  * when creating the AssignmentRule object via the AssignmentRule constructors.
  * This is necessary to ensure that an SBML document has a consistent overall
  * structure.  Nevertheless, the ability to supply the values at the time of
  * creation of a AssignmentRule is an important aid to producing valid SBML.
  * Knowledge of the intented SBML Level and Version determine whether it is
  * valid to assign a particular value to an attribute, or whether it is valid
  * to add an object to an existing SBMLDocument.
  *
    */
 public AssignmentRule(SBMLNamespaces sbmlns)
     : this(libsbmlPINVOKE.new_AssignmentRule__SWIG_1(SBMLNamespaces.getCPtr(sbmlns)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:TotteKarlsson,項目名稱:roadrunner,代碼行數:36,代碼來源:AssignmentRule.cs

示例10: SBMLConstructorException

 public SBMLConstructorException(string elementName, SBMLNamespaces xmlns)
     : this(libsbmlPINVOKE.new_SBMLConstructorException__SWIG_2(elementName, SBMLNamespaces.getCPtr(xmlns)), true)
 {
 }
開發者ID:0u812,項目名稱:roadrunner-backup,代碼行數:4,代碼來源:SBMLConstructorException.cs

示例11: setSBMLNamespaces

 /**
    * Sets the SBMLNamespaces object to allow this stream to reference
    * the available SBML namespaces being read.
    */
 public void setSBMLNamespaces(SBMLNamespaces sbmlns)
 {
     libsbmlPINVOKE.XMLOutputStream_setSBMLNamespaces(swigCPtr, SBMLNamespaces.getCPtr(sbmlns));
 }
開發者ID:0u812,項目名稱:roadrunner-backup,代碼行數:8,代碼來源:XMLOutputStream.cs

示例12: setTargetNamespaces

 /**
    * Sets the target namespace.
    *
    * @param targetNS the target namespace to use.
    */
 public void setTargetNamespaces(SBMLNamespaces targetNS)
 {
     libsbmlPINVOKE.ConversionProperties_setTargetNamespaces(swigCPtr, SBMLNamespaces.getCPtr(targetNS));
 }
開發者ID:0u812,項目名稱:roadrunner-backup,代碼行數:9,代碼來源:ConversionProperties.cs

示例13: SBMLDocumentPlugin

 /**
    *  Constructor
    *
    * @param uri the URI of package
    * @param prefix the prefix for the given package
    * @param sbmlns the SBMLNamespaces object for the package
    */
 public SBMLDocumentPlugin(string uri, string prefix, SBMLNamespaces sbmlns)
     : this(libsbmlPINVOKE.new_SBMLDocumentPlugin__SWIG_0(uri, prefix, SBMLNamespaces.getCPtr(sbmlns)), true)
 {
 }
開發者ID:kirichoi,項目名稱:roadrunner,代碼行數:11,代碼來源:SBMLDocumentPlugin.cs

示例14: ListOfEventAssignments

 /**
    * Creates a new ListOfEventAssignments object.
    *
    * The object is constructed such that it is valid for the SBML Level and
    * Version combination determined by the SBMLNamespaces object in @p
    * sbmlns.
    *
    * @param sbmlns an SBMLNamespaces object that is used to determine the
    * characteristics of the ListOfEventAssignments object to be created.
    */
 public ListOfEventAssignments(SBMLNamespaces sbmlns)
     : this(libsbmlPINVOKE.new_ListOfEventAssignments__SWIG_1(SBMLNamespaces.getCPtr(sbmlns)), true)
 {
 }
開發者ID:alexholehouse,項目名稱:SBMLIntegrator,代碼行數:14,代碼來源:ListOfEventAssignments.cs

示例15: test_FunctionDefinition_createWithNS

 public void test_FunctionDefinition_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,1);
       sbmlns.addNamespaces(xmlns);
       FunctionDefinition object1 = new  FunctionDefinition(sbmlns);
       assertTrue( object1.getTypeCode() == libsbml.SBML_FUNCTION_DEFINITION );
       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,代碼來源:TestFunctionDefinition.cs


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