@Test public void testGet( ) { try { Block block = genBlockFullObject( _noOfRows, _noOfCols ); for( int i = 0; i < block.getNoOfRows( ); i++ ) for( int j = 0; j < block.getNoOfCols( ); j++ ) assertEquals( (double)( i + j ), block.get( i, j ), 0. ); block = genBlockHashObject( _noOfRows, _noOfCols ); for( int i = 0; i < block.getNoOfRows( ); i++ ) for( int j = 0; j < block.getNoOfCols( ); j++ ) assertEquals( (double)( i + j ), block.get( i, j ), 0. ); } catch( JWaveException e ) { e.printStackTrace( ); fail( "caught exception" ); } }
public abstract double get( int i, int j ) throws JWaveException;
Block extends Super { public abstract double get( int i, int j ) throws JWaveException; }
Block extends Super { public abstract double get( int i, int j ) throws JWaveException; Block( );  Block( Block block );  Block( int noOfRows, int noOfCols );  Block( int offSetRow, int offSetCol, int noOfRows, int noOfCols ); }
Block extends Super { public abstract double get( int i, int j ) throws JWaveException; Block( );  Block( Block block );  Block( int noOfRows, int noOfCols );  Block( int offSetRow, int offSetCol, int noOfRows, int noOfCols ); int getNoOfRows( ); int getNoOfCols( ); int getOffSetRow( ); int getOffSetCol( ); abstract double get( int i, int j ); abstract void set( int i, int j, double value ); }
Block extends Super { public abstract double get( int i, int j ) throws JWaveException; Block( );  Block( Block block );  Block( int noOfRows, int noOfCols );  Block( int offSetRow, int offSetCol, int noOfRows, int noOfCols ); int getNoOfRows( ); int getNoOfCols( ); int getOffSetRow( ); int getOffSetCol( ); abstract double get( int i, int j ); abstract void set( int i, int j, double value );  }