Programming Resources
For Fun and Learning
Charles Cusack
Computer Science
Hope College
main

Python
C++

JAVA


PHP
SQL
Alice

PiEstimator


Description

Run it
Download jar file (Right click)

EstimatorController.java
EstimatorEvent.java
EstimatorListener.java
EstimatorModel.java
EstimatorView1.java
EstimatorView2.java
PiEstimator.java
PiEstimatorModel.java

Description
PiEstimator is a package of classes that
  • serve as a simple example of the Model-View-Controller (MVC) architecture.
  • serve as an example of creating and using abstract classes.
  • serve as an example of creating and using events and listeners.
  • serve as an example of why javadoc comments are useful.

The code is all documented using javadoc comments. The package description was automatically created using the javadoc command.

The only thing I had to do besides the commenting in the code was write a simple general description file called package.html to generate a few general comments, which it incorporated into the pages it generated. The javadoc command does the rest of the work. I think it is pretty impressive.