3. Run a solution with different crop files |
Top Previous Next |
Now let's run for several crop files!
Task 3.1 Run solution simplace_modules/test/training/solution/2_WorkingWithProjects/03_DifferentCropFiles.sol.xml with 2 different crop types, given in simplace_modules/test/training/data/crop/crop.xml file.
Create a project xml-file with two simulations within one project.
Hints
- Declare a vCropName variable for each simulation.
- The ids of the simulations have to be different
Solution
Open the simplace_modules/test/training/project/Project3.proj.xml to see how it should be done.
Task 3.2 Execute the simplace_modules/test/training/solution/2_WorkingWithProjects/03_DifferentCropFiles.sol.xml solution and
simplace_modules/test/training/project/Project3.proj.xml with either a java application or JUnit
Hints
- Initialize new variable, e.g.: String tProjectFileName = "${_WORKDIR_}/training/project/Project1.proj.xml";
- Dont forget to prescribe the tProjectFileName
Solution
Open the simplace_modules\runs\net\simplace\sim\runs\training\WorkingWithProjects\Run_03_Project_DifferentCropFiles.java to see how it should be done.
*SimulationProjects are found in simplace_modules\test\training\solution\2_WorkingWithProjects