libsbmlcs.Compartment.getConstant C# (CSharp) Method

getConstant() public method

public getConstant ( ) : bool
return bool
        public bool getConstant()
        {
            bool ret = libsbmlPINVOKE.Compartment_getConstant(swigCPtr);
            return ret;
        }

Usage Example

コード例 #1
0
 public void test_Compartment_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,1);
       sbmlns.addNamespaces(xmlns);
       Compartment c = new  Compartment(sbmlns);
       assertTrue( c.getTypeCode() == libsbml.SBML_COMPARTMENT );
       assertTrue( c.getMetaId() == "" );
       assertTrue( c.getNotes() == null );
       assertTrue( c.getAnnotation() == null );
       assertTrue( c.getLevel() == 2 );
       assertTrue( c.getVersion() == 1 );
       assertTrue( c.getNamespaces() != null );
       assertTrue( c.getNamespaces().getLength() == 2 );
       assertTrue( c.getName() == "" );
       assertTrue( c.getSpatialDimensions() == 3 );
       assertTrue( c.getConstant() == true );
       c = null;
 }
All Usage Examples Of libsbmlcs.Compartment::getConstant