sexi.comp
Class Forest

java.lang.Object
  |
  +--sexi.comp.ForestBasic
        |
        +--sexi.comp.Forest
All Implemented Interfaces:
ForestBasicStand, ForestStand, java.io.Serializable

public class Forest
extends ForestBasic
implements ForestStand, java.io.Serializable

See Also:
Serialized Form

Field Summary
(package private)  java.util.HashMap envDataMap
           
(package private)  FertilityMap fertMap
           
(package private)  int forestAge
           
(package private)  GrowthParameters growthParam
           
(package private)  SimData simData
           
(package private)  TreeSpecMap treeSpecMap
           
 
Fields inherited from class sexi.comp.ForestBasic
lightParam
 
Constructor Summary
Forest()
           
Forest(DimensionArea areaSize)
           
Forest(TreeBasic[] t)
           
 
Method Summary
 void addTree(TreeBasic t)
           
 void addTrees(TreeBasic[] tArr)
           
 void clear()
           
 boolean containsSpecies(TreeSpec ts)
           
 FertilityMap getFertilityMap()
           
 int getForestAge()
           
 ForestData getForestData()
           
 double getGroundCover(double gridX, double gridY)
          return rasio of ground cover by trees crown <<< to recheck! >>>
 GrowthParameters getGrowthParameters()
          return cloned GrowthParameters
 LightMap getLightMap()
           
 SimData getSimulationData()
          return cloned SimData
 int getTreeNeighboursReferences()
           
 TreeSpec[] getTreeSpecList()
           
 void growthTrees()
          Main loop for growth
 void processDataRetreive()
           
 void putRecGridCount(TreeSpec spec, int n)
           
 boolean removeAllTrees(TreeBasic[] tArr)
           
 void removeTree(TreeBasic t)
           
 void reset()
           
 void setArea(DimensionArea a)
          Set the area of forest
 void setGrowthParameters(GrowthParameters p)
           
 void setTreeSpecList(TreeSpec[] ts)
           
 java.lang.String toString()
           
 
Methods inherited from class sexi.comp.ForestBasic
cropTrees, getArea, getCrownBottomMap, getCrownCenterMap, getCrownTopPosition, getCurrentID, getLightParameters, getNeighbourMap, getNeighbourMap, getTreeContains, getTreeContains, getTreeContains, getTreeCrownsContains, getTreeList, getTrees, getTreeSet, getTreesOnRadius, getTreesOutsideArea, resetNeighboursLink, setLightParameters, setNeighbourLink, setNeighboursLink, setTrees, size
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface sexi.comp.ForestStand
getArea
 
Methods inherited from interface sexi.comp.ForestBasicStand
getLightParameters, getNeighbourMap, getTrees, size
 

Field Detail

treeSpecMap

TreeSpecMap treeSpecMap

forestAge

int forestAge

simData

SimData simData

growthParam

GrowthParameters growthParam

fertMap

FertilityMap fertMap

envDataMap

java.util.HashMap envDataMap
Constructor Detail

Forest

public Forest()

Forest

public Forest(TreeBasic[] t)

Forest

public Forest(DimensionArea areaSize)
Method Detail

addTree

public void addTree(TreeBasic t)
Overrides:
addTree in class ForestBasic

getFertilityMap

public FertilityMap getFertilityMap()

addTrees

public void addTrees(TreeBasic[] tArr)
Specified by:
addTrees in interface ForestStand
Overrides:
addTrees in class ForestBasic

getGroundCover

public double getGroundCover(double gridX,
                             double gridY)
return rasio of ground cover by trees crown <<< to recheck! >>>

getForestData

public ForestData getForestData()

growthTrees

public void growthTrees()
Main loop for growth
Specified by:
growthTrees in interface ForestStand

processDataRetreive

public void processDataRetreive()
Specified by:
processDataRetreive in interface ForestStand

getLightMap

public LightMap getLightMap()
Specified by:
getLightMap in interface ForestStand

getTreeSpecList

public TreeSpec[] getTreeSpecList()
Specified by:
getTreeSpecList in interface ForestStand

containsSpecies

public boolean containsSpecies(TreeSpec ts)

setTreeSpecList

public void setTreeSpecList(TreeSpec[] ts)

getForestAge

public int getForestAge()
Specified by:
getForestAge in interface ForestStand

removeTree

public void removeTree(TreeBasic t)
Specified by:
removeTree in interface ForestStand
Overrides:
removeTree in class ForestBasic

removeAllTrees

public boolean removeAllTrees(TreeBasic[] tArr)
Overrides:
removeAllTrees in class ForestBasic

clear

public void clear()
Overrides:
clear in class ForestBasic

reset

public void reset()

setGrowthParameters

public void setGrowthParameters(GrowthParameters p)

getGrowthParameters

public GrowthParameters getGrowthParameters()
return cloned GrowthParameters
Specified by:
getGrowthParameters in interface ForestStand

getSimulationData

public SimData getSimulationData()
return cloned SimData

setArea

public void setArea(DimensionArea a)
Description copied from class: ForestBasic
Set the area of forest
Overrides:
setArea in class ForestBasic

putRecGridCount

public void putRecGridCount(TreeSpec spec,
                            int n)
Specified by:
putRecGridCount in interface ForestStand

getTreeNeighboursReferences

public int getTreeNeighboursReferences()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object