@Test public void testSet( ) { try { Space space = genSpaceFullObject( _noOfRows, _noOfCols, _noOfLvls ); for( int i = 0; i < space.getNoOfRows( ); i++ ) for( int j = 0; j < space.getNoOfCols( ); j++ ) for( int k = 0; k < space.getNoOfLvls( ); k++ ) space.set( i, j, k, (double)( i + j + k + 1 ) ); for( int i = 0; i < space.getNoOfRows( ); i++ ) for( int j = 0; j < space.getNoOfCols( ); j++ ) for( int k = 0; k < space.getNoOfLvls( ); k++ ) assertEquals( (double)( i + j + k + 1 ), space.get( i, j, k ), 0. ); space = genSpaceHashObject( _noOfRows, _noOfCols, _noOfLvls ); for( int i = 0; i < space.getNoOfRows( ); i++ ) for( int j = 0; j < space.getNoOfCols( ); j++ ) for( int k = 0; k < space.getNoOfLvls( ); k++ ) space.set( i, j, k, (double)( i + j + k + 1 ) ); for( int i = 0; i < space.getNoOfRows( ); i++ ) for( int j = 0; j < space.getNoOfCols( ); j++ ) for( int k = 0; k < space.getNoOfLvls( ); k++ ) assertEquals( (double)( i + j + k + 1 ), space.get( i, j, k ), 0. ); } catch( JWaveException e ) { e.printStackTrace( ); fail( "caught exception" ); } }
public abstract void set( int i, int j, int k, double value ) throws JWaveException;
Space extends Super { public abstract void set( int i, int j, int k, double value ) throws JWaveException; }
Space extends Super { public abstract void set( int i, int j, int k, double value ) throws JWaveException; Space( );  Space( Space space );  Space( int noOfRows, int noOfCols, int noOfLvls );  Space( int offSetRow, int offSetCol, int offSetLvl, int noOfRows,
      int noOfCols, int noOfLvls ); }
Space extends Super { public abstract void set( int i, int j, int k, double value ) throws JWaveException; Space( );  Space( Space space );  Space( int noOfRows, int noOfCols, int noOfLvls );  Space( int offSetRow, int offSetCol, int offSetLvl, int noOfRows,
      int noOfCols, int noOfLvls ); int getNoOfRows( ); int getNoOfCols( ); int getNoOfLvls( ); int getOffSetRow( ); int getOffSetCol( ); int getOffSetLvl( ); abstract double get( int i, int j, int k ); abstract void set( int i, int j, int k, double value ); }
Space extends Super { public abstract void set( int i, int j, int k, double value ) throws JWaveException; Space( );  Space( Space space );  Space( int noOfRows, int noOfCols, int noOfLvls );  Space( int offSetRow, int offSetCol, int offSetLvl, int noOfRows,
      int noOfCols, int noOfLvls ); int getNoOfRows( ); int getNoOfCols( ); int getNoOfLvls( ); int getOffSetRow( ); int getOffSetCol( ); int getOffSetLvl( ); abstract double get( int i, int j, int k ); abstract void set( int i, int j, int k, double value );  }