JMRI: Use of JavaDoc and UML
The JMRI library provides the majority of its API documentation via JavaDoc and UML.We also use Java annotations to document our code structure.
We use the UmlGraph doclet to automatically create the UML diagrams in our JavaDoc pages.
JavaDoc for Developers
The JavaDoc tutorial is a good, but somewhat long, introduction to JavaDoc.UML and UmlGraph for Developers
UML is a broad and deep language for describing the structure, design and behavior of computing systems. JMRI primarly uses UML class diagrams for documenting its structure. Many UML tutorials are available on the web. In particular, a good starting point is the Object Mentor introduction to class diagrams. For more detail, please see Atlas UML course or Embarcadero Software introduction.Processing
The standard JMRI Ant build provide three documentation targets:- javadoc
- Create the text JavaDocs in the local doc/ directory. Open doc/index.html for access.
- javadoc-uml
- Create the UML diagrams and JavaDocs in the local doc/ directory. Open doc/index.html for access.
- uploadjavadoc
- Upload the current documentation in the local doc/ directory to the jmri.org web site.