Sample applications

Parent Previous Next

Two sample applications (Console Application projects; C#.NET v 4.5) are provided in the Software Development Kit as examples of use of the component. In all cases, focus is on the simplicity of the example provided to allow a quick start on component use.


The sample applications provide an example of use of two growth and development models currently implemented in UNIMI.Cassandra.CaneML: Canegro and Arungro. They provide examples of how UNIMI.Cassandra.CaneML can be used for simulating the growth and development of sugarcane and giant reed, respectively.


'SampleApplication_CaneML_Arungro' simulates growth and development of giant reed under potential conditions (i.e, with temperature and solar radiation as the only limiting factors) for 20 years in sequence. Each year -at day of the year 320- an harvest event is simulated. The assignment of parameters, the population of meteorological inputs, the run of the model and the creation of the output file are managed within the class "program". The inputs of the sample application (file SampleApplicationInput.txt) can be found in the folder bin/debug/. In the same folder the outputs are stored (file SampleApplicationOutput.xls).


'SampleApplication_CaneML_Canegro_SoilW' simulates growth and development of sugarcane both under potential conditions (i.e, with temperature and solar radiation as the only limiting factors) and water limited conditions. In this case rainfall is the only supply of water. Evaporation, water uptake and water redistribution in soil are simulated by models implemented within the UNIMI.SoilW component.

All the models are linked via adapters with a ModelRunner application (i.e., SampleApplication_Runner) that does not offer any service other than linking components. Following this logic, each component has a data-type class for interfacing with the ModelRunner, aimed at the re-use of its domain classes (e.g., CanegroDataType, SoilWDataType) and an adapter class, in which parameters value is assigned, the links with the meteorological inputs and the run of the model (e.g., SugarcanePotential_12months, SugarcaneWL_12months).

The inputs of the modeling solution (weather and management files) can be found in the folder Runner.Solution/bin/debug/. The component CRA.Core.GDD (http://agsys.cra-cin.it/tools/gdd/help/) is linked to the applications for graphically showing the outputs of the simulations. It will open automatically when the sample application is run.The outputs are saved in the folder Runner.Solution/bin/debug/Outputs.

































































































Created with the Personal Edition of HelpNDoc: Easily create Help documents