Java Applet Use
By: Artur • Study Guide • 265 Words • December 12, 2009 • 895 Views
Essay title: Java Applet Use
Problem Statement
Create an applet displaying an arrangement of lighting 'bulbs' and allows
the user to assign a color and lighting information to subsets of bulbs.
The lighting information would include color of the bulb, a start time and
a periodicity.
Once the user is done with programming the bulbs in this manner, the
applet should simulate the bulbs lighting for a length of time specified
by the user (simulating something like Diwali lights with different
patterns of bulbs lighting).
The implementation involves
1) Making an applet, creating the input -output interface.
2) Timing simulation.
Note that the simulation events must be maintained in a priority queue
implemented as a binary heap with time information as the priority. It is
required that the input is given from a file about the lay out of the
bulbs, the attributes of bulbs (Name or ID, color, shape, start time,
periodicity, etc.). In addition it is encouraged that one makes
interactive interface for inputs.
For Example: