libsbml.Compartment.setSpatialDimensions C# (CSharp) Method

setSpatialDimensions() public method

public setSpatialDimensions ( double value ) : int
value double
return int
        public int setSpatialDimensions(double value)
        {
            int ret = libsbmlPINVOKE.Compartment_setSpatialDimensions__SWIG_1(swigCPtr, value);
            return ret;
        }

Same methods

Compartment::setSpatialDimensions ( long value ) : int

Usage Example

 public void test_internal_consistency_check_99901()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Compartment c = new Compartment(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       long dim = 2;
       c.setSpatialDimensions(dim);
       c.setId("c");
       m.addCompartment(c);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 1 );
       assertTrue( d.getError(0).getErrorId() == 10103 );
       d = null;
 }
All Usage Examples Of libsbml.Compartment::setSpatialDimensions