sexi.comp
Class FertilityMap
java.lang.Object
|
+--sexi.comp.FertilityMap
- All Implemented Interfaces:
- GridData, java.io.Serializable
- public class FertilityMap
- extends java.lang.Object
- implements GridData, java.io.Serializable
fertility dibagi dengan grid...
setiap pohon mendapatkan fertility coofisien rata2 dari grid2 yang tercakup oleh
tajuknya...
algor: utk setiap grid diambil ttk tengahnya dan di cek apakah intersect dengan
tajuk pohon yang bersangkutan.
gambar petanya masih tebalik noh... axis Y nya
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
area
DimensionArea area
grid
DimensionArea grid
valueInpList
java.util.ArrayList valueInpList
arrPoint
java.awt.geom.Point2D[] arrPoint
arrRec
java.awt.geom.Rectangle2D[] arrRec
arrVal
double[] arrVal
FertilityMap
public FertilityMap()
createGrid
public void createGrid(DimensionArea a,
DimensionArea gridSampling)
createGrid
public void createGrid(DimensionArea a)
setFertilityValue
public void setFertilityValue(Point3fValue[] pArr)
getFertilityValue
public double getFertilityValue(Tree t)
interpolate
public boolean interpolate()
- Interpolate the fertilities on the grids specifies
from the fertilities information on a randomize location..
fillGridSuitable
public boolean fillGridSuitable()
- set the fertilities on the grids specifies
from the fertilities information closess
getGrid
public DimensionArea getGrid()
getDimensionArea
public DimensionArea getDimensionArea()
setValue
public void setValue(int index,
double value)
size
public int size()
- Specified by:
size
in interface GridData
getArea
public java.awt.geom.Rectangle2D getArea()
- Specified by:
getArea
in interface GridData
getGrid
public java.awt.geom.Rectangle2D getGrid(int index)
- Specified by:
getGrid
in interface GridData
getGridCenter
public java.awt.geom.Point2D getGridCenter(int index)
- Specified by:
getGridCenter
in interface GridData
getGridValue
public double getGridValue(int index)
- Specified by:
getGridValue
in interface GridData
getIndexContains
public int getIndexContains(double x,
double y)
- Specified by:
getIndexContains
in interface GridData