Sample applications

Parent Previous Next

A sample application (Console Application projects; C#.NET v 4.5) is provided in the Software Development Kit as example of use of the component. Focus is on the simplicity of the example provided to allow a quick start on component use.


The sample application provides an example of use  of the component UNIMI.Forcing linked with the crop model WARM.


'SampleApplication_CropML_Forcing' simulates the impact of forcing the crop leaf area index (LAI) with LAI and NDVI values coming from external sources, and it shows the impact on LAI and aboveground biomass.

The UNIMI.Forcing and the UNIMI.CropML components 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., WARMDataType, ForcingDataType) and an adapter class, in which parameters value is assigned, the links with the meteorological inputs and the run of the model (e.g., AdapterForcing, AdapterWARM).

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: Easy EPub and documentation editor