clTestPlanting Class Reference

Tests the clPlant class. More...

#include <TestPlanting.h>

List of all members.

Public Member Functions

void TestPlanting ()
 Groups together all the other plant testing functions into a comprehensive plant test.

Protected Member Functions

void DoPlantingRun1 (clSimManager *p_oSimManager)
 Do the first planting run.
void DoPlantingRun2 (clSimManager *p_oSimManager)
 Do the second planting run.
void DoPlantingRun3 (clSimManager *p_oSimManager)
 Do the third planting run.
void DoPlantingRun4 (clSimManager *p_oSimManager)
 Do the fourth planting run.
char * WriteXMLFile1 ()
 Writes a parameter file to test planting for run 1.
char * WriteXMLFile2 ()
 Writes a parameter file to test planting for run 2.
char * WriteXMLFile3 ()
 Writes a parameter file to test planting for run 3.
char * WriteXMLFile4 ()
 Writes a parameter file to test planting for run 4.


Detailed Description

Tests the clPlant class.


Member Function Documentation

void clTestPlanting::DoPlantingRun1 clSimManager *  p_oSimManager  )  [protected]
 

Do the first planting run.

WriteXMLFile1() is used to do the run. The characteristics of this run are:

  • Timestep 1
  • Species 3, 4, 5
  • Spacing Type - Random
  • Density - 200/ha
  • Grids - whole plot
  • Amount - 33.3% for each species
  • Seedling diam10 - default

void clTestPlanting::DoPlantingRun2 clSimManager *  p_oSimManager  )  [protected]
 

Do the second planting run.

WriteXMLFile2() is used to do the run. The characteristics of this run are:

  • Timestep 2
  • Species All
  • Spacing Type - Gridded
  • Density - 2 m
  • Grids - whole plot
  • Amount
    • Sp 0 - 5%
    • Sp 1 - 10%
    • Sp 2 - 15%
    • Sp 3 - 30%
    • Sp 4 - 1%
    • Sp 5 - 10%
    • Sp 6 - 7%
    • Sp 7 - 8%
    • Sp 8 - 4%
  • Seedling diam10
    • Sp 0 - 0.1
    • Sp 1 - 0.2
    • Sp 2 - 0.3
    • Sp 3 - 0.4
    • Sp 4 - 0.5
    • Sp 5 - 0.6
    • Sp 6 - 0.7
    • Sp 7 - 0.8
    • Sp 8 - 0.9

void clTestPlanting::DoPlantingRun3 clSimManager *  p_oSimManager  )  [protected]
 

Do the third planting run.

WriteXMLFile3() is used to do the run. The characteristics of this run are: Planting event 1:

  • Timestep 1
  • Species 0, 1, 2
  • Spacing Type - Random
  • Density - 150/ha
  • Grids - 0,0-2-24; 5,0-5,24
  • Amount
    • Sp 0 - 25%
    • Sp 1 - 35%
    • Sp 2 - 40%
  • Seedling diam10
    • Sp 0 - 0.1
    • Sp 1 - 0.2
    • Sp 2 - 0.3
Planting event 2:
  • Timestep 1
  • Species 7, 8
  • Spacing Type - Gridded
  • Spacing - 3 m
  • Grids - 0,0 - 24,2; 6,5-11,10
  • Amount
    • Sp 7 - 40%
    • Sp 8 - 60%
  • Seedling diam10
    • Sp 7 - 0.7
    • Sp 8 - 0.8

void clTestPlanting::DoPlantingRun4 clSimManager *  p_oSimManager  )  [protected]
 

Do the fourth planting run.

WriteXMLFile4() is used to do the run. The characteristics of this run are: Planting event 1:

  • Timestep 2
  • Species - All
  • Spacing Type - Random
  • Density - 156.25/ha
  • Grids - 24, 24
  • Amount - 11.1% for each species
  • Seedling diam10 - default
Planting event 2:
  • Timestep 3
  • Species - All
  • Spacing Type - Gridded
  • Spacing - 2 m
  • Grids - 23, 23
  • Amount - 11.1% for each species
  • Seedling diam10 - default

char* clTestPlanting::WriteXMLFile1  )  [protected]
 

Writes a parameter file to test planting for run 1.

Returns:
Filename written.

char* clTestPlanting::WriteXMLFile2  )  [protected]
 

Writes a parameter file to test planting for run 2.

Returns:
Filename written.

char* clTestPlanting::WriteXMLFile3  )  [protected]
 

Writes a parameter file to test planting for run 3.

Returns:
Filename written.

char* clTestPlanting::WriteXMLFile4  )  [protected]
 

Writes a parameter file to test planting for run 4.

Returns:
Filename written.


The documentation for this class was generated from the following file:
Generated on Mon Mar 27 15:13:46 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.6-NO