Swarm
This appet demonstrates a simple flocking, or swarming behavior. Each
particle follows three simple rules: follow the leader, attempt to
match neighbors' velocity and stay near the center of the swarm's
mass. If you move the mouse over the applet, the mouse becomes the
leader, otherwise the green particle is the leader and will attempt
an avoidance behavior. Source included!
Author's Notes:
Compiled with JDK 1.2.
How To Use:
Download swarm.zip (6 KB)
Unzip with a
compression utility.
Java Source:
Included in zip file.
Sample HTML Source:
<APPLET code="Driver.class"
width=640
height=480>
</APPLET>
Status: Free
Author: Jeremy Brooks
Homepage: http://kahuna.clayton.edu/~jbrooks/applets/flock
Upload Date: June 5, 2002
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|