#include <TestNCIJuvenileGrowth.h>
Public Member Functions | |
| void | TestNCIJuvenileGrowth () |
| Tests the clNciGrowth class. | |
| void | TestRun1 (clSimManager *p_oSimManager) |
| Performs a test run of NCI growth. | |
| void | TestRun2 (clSimManager *p_oSimManager) |
| Tests the growth calculations at two timestep lengths. | |
| void | TestErrorProcessing (clSimManager *p_oSimManager) |
| Tests error processing for input files. | |
Protected Member Functions | |
| char * | WriteXMLFile1 () |
| Writes a 1-year timestep file. | |
| char * | WriteXMLFile2 () |
| Writes a 3-year timestep file. | |
| char * | WriteXMLFile3 () |
| Writes a 1-year timestep file. | |
| char * | WriteXMLFile4 () |
| Writes a 3-year timestep file. | |
| char * | WriteXMLErrorFile1 () |
| Writes an error condition where max radius of neighbor effects is < 0. | |
| char * | WriteXMLErrorFile2 () |
| Writes an error condition where max growth for a species is < 0. | |
| char * | WriteXMLErrorFile3 () |
| Writes an error condition where a min neighbor diam10 is less than 0. | |
| void | WriteCommonStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files (tree pop, plot, etc). | |
| void | WriteRunCommonStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files for Run 1. | |
| void | WriteErrorFileCommonStuff (std::fstream &oOut) |
| Writes common portions of the test error parameter files (tree pop, plot, etc). | |
| void clTestNCIJuvenileGrowth::TestNCIJuvenileGrowth | ( | ) |
Tests the clNciGrowth class.
| void clTestNCIJuvenileGrowth::TestRun1 | ( | clSimManager * | p_oSimManager | ) |
Performs a test run of NCI growth.
WriteXMLFile1() performs setup for a 1-year timestep; then WriteXMLFile2() performs setup for an otherwise identical 3-year timestep.
| p_oSimManager | Sim Manager object to do the runs. |
| void clTestNCIJuvenileGrowth::TestRun2 | ( | clSimManager * | p_oSimManager | ) |
Tests the growth calculations at two timestep lengths.
WriteXMLFile3() is used to do setup in the first case, for a 1 year timestep. WriteXMLFile4() does setup for a 3 year timestep and the growth is checked for the same trees.
| p_oSimManager | Sim Manager object to do the runs. |
| void clTestNCIJuvenileGrowth::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) |
Tests error processing for input files.
| char* clTestNCIJuvenileGrowth::WriteXMLFile1 | ( | ) | [protected] |
Writes a 1-year timestep file.
This contains 3 species. NCI growth (auto-height) is assigned to adults of Species 1.
| char* clTestNCIJuvenileGrowth::WriteXMLFile2 | ( | ) | [protected] |
Writes a 3-year timestep file.
This contains 3 species. NCI growth (auto-height) is assigned to adults of Species 1.
| char* clTestNCIJuvenileGrowth::WriteXMLFile3 | ( | ) | [protected] |
Writes a 1-year timestep file.
This contains 4 species, one unused (species 3; this helps catch array-index problems). NCI growth (auto-height) is assigned to all saplings and adults.
| char* clTestNCIJuvenileGrowth::WriteXMLFile4 | ( | ) | [protected] |
Writes a 3-year timestep file.
This contains 4 species, one unused (species 3; this helps catch array-index problems). NCI growth (auto-height) is assigned to all saplings and adults.
| char* clTestNCIJuvenileGrowth::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes an error condition where max radius of neighbor effects is < 0.
| char* clTestNCIJuvenileGrowth::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes an error condition where max growth for a species is < 0.
| char* clTestNCIJuvenileGrowth::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes an error condition where a min neighbor diam10 is less than 0.
| void clTestNCIJuvenileGrowth::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files (tree pop, plot, etc).
Picks up right after the number of years per timestep and ends at the closing tree tag.
| oOut | File stream to write to. |
| void clTestNCIJuvenileGrowth::WriteRunCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files for Run 1.
Picks up at the behavior list through the end of the file.
| oOut | File stream to write to. |
| void clTestNCIJuvenileGrowth::WriteErrorFileCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test error parameter files (tree pop, plot, etc).
Starts at the beginning of the file and ends at the closing tree tag.
| oOut | File stream to write to. |
1.5.6