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

Field Summary
(package private)  DimensionArea area
           
(package private)  java.awt.geom.Point2D[] arrPoint
           
(package private)  java.awt.geom.Rectangle2D[] arrRec
           
(package private)  double[] arrVal
           
(package private)  DimensionArea grid
           
(package private)  java.util.ArrayList valueInpList
           
 
Constructor Summary
FertilityMap()
           
 
Method Summary
 void createGrid(DimensionArea a)
           
 void createGrid(DimensionArea a, DimensionArea gridSampling)
           
 boolean fillGridSuitable()
          set the fertilities on the grids specifies from the fertilities information closess
 java.awt.geom.Rectangle2D getArea()
           
 DimensionArea getDimensionArea()
           
 double getFertilityValue(Tree t)
           
 DimensionArea getGrid()
           
 java.awt.geom.Rectangle2D getGrid(int index)
           
 java.awt.geom.Point2D getGridCenter(int index)
           
 double getGridValue(int index)
           
 int getIndexContains(double x, double y)
           
 boolean interpolate()
          Interpolate the fertilities on the grids specifies from the fertilities information on a randomize location..
 void setFertilityValue(Point3fValue[] pArr)
           
 void setValue(int index, double value)
           
 int size()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FertilityMap

public FertilityMap()
Method Detail

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