Sample Application

Parent Previous Next

Sample project (C# .NET v 1.0 code) is provided as an example of use of the component.

The sample application provided in the Software Development Kit contains a Console Application project and a Class Library project with an example of use of the component AbioticDamage linked with the component CropML.

In this example of use, the crop production is limited by cold.


The two models are linked via adapters with a ModelRunner application 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. CropMLDataType, AbioticDamageDataType..) and an adapter class, in which there is the assignation of the parameters value, the links with the meteorological inputs and the run of the model (e.g. AdapterCropML, AdapterAbioticDamage…).

The solution contains also a class called AdapterWeatherReader that has the function of reading the meteorological variables from the meteo file and to provide them to the biophysical components.

The other classes present in the sample application have a full description in the Model Runner help file.


Focus is on the simplicity of the example provided to allow a quick start on component use.


Created with the Personal Edition of HelpNDoc: Full-featured multi-format Help generator