auc.field
Class Crop

java.lang.Object
  |
  +--auc.field.Grid
        |
        +--auc.field.Crop

public class Crop
extends Grid

The Crop class represents the crop grid structure of the plants in the field.


Field Summary
protected  java.lang.String name
          The name or the kind of the Crop.
 
Fields inherited from class auc.field.Grid
appRate, cellLatLength, cellLatX, cellLatY, cellLongLength, cellLongX, cellLongY, cellUnit, fieldReference, grid2D, inclination, inclLatitude, inclLongtitude, minLatitude, minLongitude, numberOfCols, numberOfRows
 
Constructor Summary
protected Crop(Field field)
          Another constructor for the children of this class.
  Crop(Field field, java.io.Reader reader)
          Constructs a crop structure for given field with given parameters in the Reader stream.
 
Method Summary
static Crop createSample(Field field)
          Creates a sample crop structure on a given field.
 java.lang.String getName()
          Return the name of the crop.
 void setName(java.lang.String name)
          Sets the name for the crop structure
 
Methods inherited from class auc.field.Grid
getAppRate, getArray, getCellLatLength, getCellLongLength, getCellUnit, getGrid2D, getInclination, getInclLatitude, getInclLongtitude, getMinLatitude, getMinLongitude, getNumberOfCols, getNumberOfRows, getPoints, readData, setCellLatLength, setCellLongLength, setCellUnit, setGrid2D, setInclination, setInclLatitude, setInclLongtitude, setMinLatitude, setMinLongitude, setNumberOfCols, setNumberOfRows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name or the kind of the Crop.
Constructor Detail

Crop

public Crop(Field field,
            java.io.Reader reader)
Constructs a crop structure for given field with given parameters in the Reader stream.
Parameters:
field - the field reference where the crop is situated
reader - stream where the description of the crop grid is held.
See Also:
Grid.fieldReference

Crop

protected Crop(Field field)
Another constructor for the children of this class. We assume that children will set their own grid, not from file.
Parameters:
field - the field reference where the crop is situated
See Also:
Grid.fieldReference
Method Detail

createSample

public static Crop createSample(Field field)
Creates a sample crop structure on a given field.
Parameters:
field - The field where the crop is situated.
See Also:
Grid.fieldReference

getName

public java.lang.String getName()
Return the name of the crop.
See Also:
name

setName

public void setName(java.lang.String name)
Sets the name for the crop structure
Parameters:
name - The name or the kind of the crop structure to be set.
See Also:
name