Technical documentation for Indicators

Indicator library, usable in eco-climatic mode (with an embeddded phenological model) as well as agro-climatic. This library is used by the desktop software GETARI and the workflow SEASON embeeded into SICLIMA.

Project links:

Code structuration

Source code is divided as:

  • pom.xml: Maven file
  • src/main/ : source code
  • src/test/ : source code for tests
  • src/site/ : documentation, see below

Documentation

Documentation is writtent in the folder /src/site/markdown/. Site structure is defined in /src/site/site_en.xml. Plain text formats are prefered to allow SCM. This document is writtent in Markdown format.

UML diagrams are written in PlantUML format (extension .puml in /src/site/resources/images/). The prefixes for the diagrams:

  • act- : activity diagrams
  • cas- : use case diagrams
  • cls- : class diagrams
  • cmp- : component diagrams
  • seq- : sequence diagrams

The technical documentation is generated by Maven. The Markdown files showing indicators and error codes are generated by the class GenerateMarkdown.

mvn exec:java -Dexec.mainClass=fr.inrae.agroclim.indicators.GenerateMarkdown -Dexec.args='${basedir}/src/site/markdown -'
mvn site

Jetty can be used for real time rendering, so refreshing the browser shows the changes: use mvn site:run and visit the link, usually http://localhost:8080/.

If needed, generate the UML diagrams using mvn com.github.jeluard:plantuml-maven-plugin:generate.