The Unified Modeling Language is the standard way to document object-oriented programs in any language. You can visit the official site, but beginners will probably find the documentation there impenetrable. A much friendlier way to learn is to read an introductory book; I recommend UML Distilled by Martin Fowler.
The diagrams in this part of the LargoRecipes web site are intended to help you learn about the UML with a hands-on example. As LargoRecipes is not a particularly complex application, some of the fancier features of the UML don't appear in these diagrams. However, you'll find all the fundamentals illustrated. Where the diagrams aren't clear, you can consult the class documentation or the source code, both of which are included in the source code jar file.
For earlier versions of LargoRecipes, I included UML diagrams that showed every class in the system. As of version 0.8, there were over 100 classes in the system, so this became unwieldy. Instead, I now illustrate interesting class relationships with the UML, and refer you to the class documentation and source code for the detail.
Here are the UML diagrams available on this site. Each one comes with a description that explains the program features illustrated and a little about the pros and cons of each diagram type.
IngredientAmountParser class, using
a class diagram and a
a state diagram.
There are a few UML diagram types for which I don't have examples here yet:
Last updated 25 October 2002
LargoRecipes source code, program, and web site copyright 2001-3 D. Squirrel