auc.field
Class Grid

java.lang.Object
  |
  +--auc.field.Grid
Direct Known Subclasses:
Crop, Observations

public class Grid
extends java.lang.Object

The grid class represents points in the field. The Grid uses mathematical properties of the mathematical infinite auc.geom.Grid2D, but is bounded by the given field.


Field Summary
protected  java.lang.Long[][] appRate
          The aplication rate in every grid cell, database data.
protected  long cellLatLength
          The cell latitude length, database data.
protected  long cellLatX
          The cell latitude length along x-axis.
protected  long cellLatY
          The cell latitude length along y-axis.
protected  long cellLongLength
          The cell longitude length, database data.
protected  long cellLongX
          The cell longitude length along x-axis.
protected  long cellLongY
          The cell longitude length along x-axis.
protected  java.lang.String cellUnit
          The cell size measure units (meters or degrees), database data.
protected  Field fieldReference
          The reference to the field.
protected  Grid2D grid2D
          The reference to the mathematical infinite grid.
protected  long inclination
          The inclination level, database data.
protected  long inclLatitude
          The latitude inclination level, database data.
protected  long inclLongtitude
          The longitude inclination level, database data.
protected  java.lang.String minLatitude
          The minimum latitute (in degrees), GPS data.
protected  java.lang.String minLongitude
          The minimum longitude (in degrees), GPS data.
protected  long numberOfCols
          The number of columns in the grid.
protected  long numberOfRows
          The number of rows in the grid.
 
Constructor Summary
protected Grid(Field field)
           
  Grid(Field field, java.io.Reader r)
          Constructs a grid for given field with parameters in the given stream.
 
Method Summary
 java.lang.Long[][] getAppRate()
           
 Vector2D[][] getArray()
           
 long getCellLatLength()
           
 long getCellLongLength()
           
 java.lang.String getCellUnit()
           
 Grid2D getGrid2D()
           
 long getInclination()
           
 long getInclLatitude()
           
 long getInclLongtitude()
           
 java.lang.String getMinLatitude()
           
 java.lang.String getMinLongitude()
           
 long getNumberOfCols()
           
 long getNumberOfRows()
           
 java.util.Vector getPoints()
           
 void readData(java.io.Reader reader)
           
 void setCellLatLength(long celllatlength)
           
 void setCellLongLength(long celllonglength)
           
 void setCellUnit(java.lang.String cellunit)
           
 void setGrid2D(Grid2D grid)
           
 void setInclination(long inclination)
           
 void setInclLatitude(long incllatitude)
           
 void setInclLongtitude(long incllongtitude)
           
 void setMinLatitude(java.lang.String minlatitude)
           
 void setMinLongitude(java.lang.String minlongitude)
           
 void setNumberOfCols(long numberofcols)
           
 void setNumberOfRows(long numberofrows)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minLatitude

protected java.lang.String minLatitude
The minimum latitute (in degrees), GPS data.

minLongitude

protected java.lang.String minLongitude
The minimum longitude (in degrees), GPS data.

numberOfRows

protected long numberOfRows
The number of rows in the grid.

numberOfCols

protected long numberOfCols
The number of columns in the grid.

cellLatLength

protected long cellLatLength
The cell latitude length, database data.

cellLongLength

protected long cellLongLength
The cell longitude length, database data.

cellUnit

protected java.lang.String cellUnit
The cell size measure units (meters or degrees), database data.

inclination

protected long inclination
The inclination level, database data.

inclLatitude

protected long inclLatitude
The latitude inclination level, database data.

inclLongtitude

protected long inclLongtitude
The longitude inclination level, database data.

appRate

protected java.lang.Long[][] appRate
The aplication rate in every grid cell, database data.

cellLatX

protected long cellLatX
The cell latitude length along x-axis.

cellLatY

protected long cellLatY
The cell latitude length along y-axis.

cellLongX

protected long cellLongX
The cell longitude length along x-axis.

cellLongY

protected long cellLongY
The cell longitude length along x-axis.

grid2D

protected Grid2D grid2D
The reference to the mathematical infinite grid.

fieldReference

protected Field fieldReference
The reference to the field.
Constructor Detail

Grid

public Grid(Field field,
            java.io.Reader r)
Constructs a grid for given field with parameters in the given stream.
Parameters:
field - the field where the grid belongs to.
r - the reader stream, usualy constructed from a file, the format is specified in FieldStar Open Office database documentation.

Grid

protected Grid(Field field)
Method Detail

getGrid2D

public Grid2D getGrid2D()

setGrid2D

public void setGrid2D(Grid2D grid)

getArray

public Vector2D[][] getArray()

getPoints

public java.util.Vector getPoints()

readData

public void readData(java.io.Reader reader)

setMinLatitude

public void setMinLatitude(java.lang.String minlatitude)

setMinLongitude

public void setMinLongitude(java.lang.String minlongitude)

setNumberOfRows

public void setNumberOfRows(long numberofrows)

setNumberOfCols

public void setNumberOfCols(long numberofcols)

setCellLatLength

public void setCellLatLength(long celllatlength)

setCellLongLength

public void setCellLongLength(long celllonglength)

setCellUnit

public void setCellUnit(java.lang.String cellunit)

setInclination

public void setInclination(long inclination)

setInclLatitude

public void setInclLatitude(long incllatitude)

setInclLongtitude

public void setInclLongtitude(long incllongtitude)

getMinLatitude

public java.lang.String getMinLatitude()

getNumberOfRows

public long getNumberOfRows()

getCellLatLength

public long getCellLatLength()

getCellUnit

public java.lang.String getCellUnit()

getInclLatitude

public long getInclLatitude()

getMinLongitude

public java.lang.String getMinLongitude()

getCellLongLength

public long getCellLongLength()

getInclLongtitude

public long getInclLongtitude()

getNumberOfCols

public long getNumberOfCols()

getInclination

public long getInclination()

getAppRate

public java.lang.Long[][] getAppRate()