2. Start/End Dates

Top  Previous  Next

Advice! For each task create a Class (e.g. Task2) and inside the class body create methods with different names for each subtask

[e.g. for task 2 create a Class with name Task2 and two methods with names runTask1() and runTask2()]

 

Task 2.1 Change the start/end dates in the first solution: simplace_modules/test/training/solution/Solution1.sol.xml and again run the Java Application, which uses this solution.

 

       Hints:

        - What happened with the output file, does it exist? It can be found under simplace_modules/output/training/simple1.txt

        - You need to change variables startdate and enddate.

        - Those variables are located between <variables>...</variables> tags

 

       Solution:

        Follow this link.

 


 

Task 2.2 Change the start and end dates in the solution file(from Task 1) beyond the range of the weather data.

       Was the test successful, what about the output file?

 

       Hints:

        - Definitely you have to know for which period of time you have the weather data,

       open the weather data file(simplace_modules/test/training/data/lintul/weather1.txt) and check it.

        - Don't forget to run the RunFirstSolution.java test after changing the start or end dates.

 

       Solution:

        Follow this link.