Class stand

java.lang.Object
  |
  +--stand

public class stand
extends java.lang.Object

TreeGrOSS : class stand defines the forest stand information. This is the major class for several other classes of this package http://treegross.sourceforge.net

Author:
Juergen Nagel

Field Summary
(package private)  double bha
          Number of trees, basal area
(package private)  double bhaout
          Number of trees, basal area thinned
(package private)  double bhatotal
          total number of stems, basal area
(package private)  corners[] cpnt
          array for the corner points of the stand area max. 30
(package private)  int i
           
(package private)  int ncpnt
          number of corner points
(package private)  double nha
          Number of trees, basal area
(package private)  double nhaout
          Number of trees, basal area thinned
(package private)  double nhatotal
          total number of stems, basal area
(package private)  int nspecies
          number existing species
(package private)  int ntrees
          number of trees
(package private)  double size
          stand size
(package private)  int sizeoftr
           
(package private)  species[] sp
          array for species information max. 30
(package private)  java.lang.String standname
          name of the forest stand
(package private)  tree[] tr
          Maximum 2000 trees of the stand
(package private)  int year
          starting year or year of simualtion
 
Constructor Summary
stand()
           
 
Method Summary
(package private)  void addcornerpoint(java.lang.String no, double x, double y, double z)
          addcorner points
(package private)  void addName(java.lang.String na)
          add stand name to object
(package private)  void addsize(double ha)
          initialize stand area size (ha)
(package private)  void addtree(int co, java.lang.String num, int age, int out, double d, double h, double cb, double cw, double si, double x, double y, double z, int zb)
          add a tree to the stand
(package private)  double area()
          st.area calculates the stand size according to the corner points
(package private)  void descspecies()
          calculates the species values on a stand level
(package private)  double getDmax(int spe)
          get dmax by of residual trees
(package private)  double getVha(int spe)
          get volume return the total volume (code=0) or species volume
(package private)  double getVhaResidual(int spe)
          get volume by of residual trees
(package private)  double getVhaTargetDiameter(int spe)
          get volume harvested by target diameter of this year
(package private)  double getVhaThinning(int spe)
          get volume by thinning of this year
(package private)  void grow(int period, boolean regenGrowth)
          st.grow starts a growth cycle for the class stand, expects an integer for the number of years of one growing cycle.
(package private)  void initspecies()
          detect species and initialize tree species
(package private)  double overlap(double r1, double r2, double e)
          calculate overlap area of two circle only if they overlap
(package private)  void sortbyd()
          sort trees by d
(package private)  void sortbyy()
          sort trees by y-coordinate, this is for the graphical display
(package private)  void standinfo()
          total stand information resp. total stand values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ntrees

int ntrees
number of trees


nspecies

int nspecies
number existing species


ncpnt

int ncpnt
number of corner points


standname

java.lang.String standname
name of the forest stand


size

double size
stand size


nha

double nha
Number of trees, basal area


bha

double bha
Number of trees, basal area


nhaout

double nhaout
Number of trees, basal area thinned


bhaout

double bhaout
Number of trees, basal area thinned


nhatotal

double nhatotal
total number of stems, basal area


bhatotal

double bhatotal
total number of stems, basal area


year

int year
starting year or year of simualtion


i

int i

tr

tree[] tr
Maximum 2000 trees of the stand


sp

species[] sp
array for species information max. 30


cpnt

corners[] cpnt
array for the corner points of the stand area max. 30


sizeoftr

int sizeoftr
Constructor Detail

stand

public stand()
Method Detail

addtree

void addtree(int co,
             java.lang.String num,
             int age,
             int out,
             double d,
             double h,
             double cb,
             double cw,
             double si,
             double x,
             double y,
             double z,
             int zb)
add a tree to the stand


addName

void addName(java.lang.String na)
add stand name to object


addsize

void addsize(double ha)
initialize stand area size (ha)


addcornerpoint

void addcornerpoint(java.lang.String no,
                    double x,
                    double y,
                    double z)
addcorner points


sortbyd

void sortbyd()
sort trees by d


sortbyy

void sortbyy()
sort trees by y-coordinate, this is for the graphical display


standinfo

void standinfo()
total stand information resp. total stand values


getVha

double getVha(int spe)
get volume return the total volume (code=0) or species volume


getVhaTargetDiameter

double getVhaTargetDiameter(int spe)
get volume harvested by target diameter of this year


getVhaThinning

double getVhaThinning(int spe)
get volume by thinning of this year


getVhaResidual

double getVhaResidual(int spe)
get volume by of residual trees


getDmax

double getDmax(int spe)
get dmax by of residual trees


initspecies

void initspecies()
detect species and initialize tree species


descspecies

void descspecies()
calculates the species values on a stand level


grow

void grow(int period,
          boolean regenGrowth)
st.grow starts a growth cycle for the class stand, expects an integer for the number of years of one growing cycle. Should be between 1 -5. The second parameter controlls the regenration growth and can be set as either true or false


area

double area()
st.area calculates the stand size according to the corner points


overlap

double overlap(double r1,
               double r2,
               double e)
calculate overlap area of two circle only if they overlap