|
|
| ||||
October 9, 1996Why Read The Java Code?You may want to read the original code for any of these reasons:
Subtle changes can have big effects. The only definitive answer for how the simulation works is in the source code. If you want to know exactly how the model matches couples, then you should read the code.
The current model doesn't seem right to you. If you know how to program in Java, then feel free to tweak the code. Let us know the details of your results.
There are many facets of real life that were excluded from this model. You might choose to experiment with a homosexual population. Or you might want to include bisexuality.
The CodeThe main class file is AIDS4.java. It contains the main applet code which is largely concerned with displaying the information in the browser correctly. The simulation is handled by the threaded class, SimAIDSSim, which is also in the same file. The couples are represented by the class Pair.java that controls how the disease is spread.The file HistoryGraph.java contains the code for graphing the results. The code for popping up informative windows is found in TextWindow.java.
|
A Special Report
The Simulator
Tutorial
HIV Simulator FAQ |
The images are found in files Strip1.GIF through Strip5.GIF:
Strip1.GIF![]()
Strip2.GIF![]()
Strip3.GIF![]()
Strip4.GIF![]()
Strip5.GIF![]()
|