getSpatialDimensions() public method

public getSpatialDimensions ( ) : long
return long
 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;
 }
 public void test_Compartment_createWith()
 {
     Compartment c = new  Compartment(2,4);
       c.setId( "A");
       assertTrue( c.getTypeCode() == libsbml.SBML_COMPARTMENT );
       assertTrue( c.getMetaId() == "" );
       assertTrue( c.getNotes() == null );
       assertTrue( c.getAnnotation() == null );
       assertTrue( c.getName() == "" );
       assertTrue( c.getSpatialDimensions() == 3 );
       assertTrue((  "A"      == c.getId() ));
       assertTrue( c.getConstant() == true );
       assertEquals( true, c.isSetId() );
       assertEquals( false, c.isSetName() );
       c = null;
 }
 public void test_Compartment_setSpatialDimensions5()
 {
     Compartment c = new  Compartment(2,2);
       int i = c.setSpatialDimensions(2.2);
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertTrue( c.getSpatialDimensions() == 3 );
       c = null;
 }
 public void test_Compartment_initDefaults()
 {
     Compartment c = new  Compartment(2,4);
       c.setId( "A");
       c.initDefaults();
       assertTrue((  "A" == c.getId() ));
       assertTrue( c.getName() == "" );
       assertTrue( c.getUnits() == "" );
       assertTrue( c.getOutside() == "" );
       assertTrue( c.getSpatialDimensions() == 3 );
       assertTrue( c.getVolume() == 1.0 );
       assertTrue( c.getConstant() == true );
       assertEquals( true, c.isSetId() );
       assertEquals( false, c.isSetName() );
       assertEquals( false, c.isSetSize() );
       assertEquals( false, c.isSetVolume() );
       assertEquals( false, c.isSetUnits() );
       assertEquals( false, c.isSetOutside() );
       assertEquals( true, c.isSetSpatialDimensions() );
       assertEquals( true, c.isSetConstant() );
       c = null;
 }
 public void test_Compartment_setSpatialDimensions4()
 {
     Compartment c = new  Compartment(2,2);
       int i = c.setSpatialDimensions(2.0);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( c.getSpatialDimensions() == 2 );
       c = null;
 }