JavaLib
 
Setup Guides
 
Tester
WorldLib
SoundLib
 
Workshops
 
Sources
Downloads
 
TSRJ Home
TSRJ Local

TeachScheme/ReachJava: JavaLib

logo
"TeachScheme/ReachJava: JavaLib"

The JavaLib libraries are designed to be used with Java 1.5 language (or higher).

For reports on the updates and bug fixes see the updates page


New World Libraries

New versions of the interactive game libraries that provide a more flexible design of the game images and includes the handling of the mouse events are available here:

FunWorld using the functional style

ImpWorld using the imperative style

AppletWorld for designing applets

SoundWorld for designing ineractive graphics based games in imperative style with MIDI sound and music, optionally presented as Java applets


The Test Harness

The tester library provides a test harness that supports a comparison of two instances of a class based on the values of the data (extensional equality), in contrast to the reference equality (intensional equality) that is provided by default through the Java equals method and is used by the JUnit framework.

The test harness reports the number of tests performed, the number failed, provides a report on all failed tests with a reference to the test that failed as well as a display of the actual and expected values. Additionally, it also supports the conversion of any object to a representation as a well-formatted String. The test report includes a display of all data defined in the class that invoked the tests.

The library is packaged as a single jar file and can be used with any IDE. Instructions fo the use with Eclipse, NetBeans, BlueJ, JGrasp, DrJava, and command line are given in the Setup Guides pages.


World Libraries

The library collection WorldLib supports the design of programs that include simple drawings and interactive animations and games in a style of similar libraries in DrRacket HtDP languages environment. The programmer focuses on the design of the classes that represent the behavior of the game objects, their interactions, and the display of the objects as simple vector graphics drawings. An alternative library allows the programmer to publish the drawing, animation, or a game as a Java applet without any changes in the original program.


Sound Libraries

The library collection SoundLib extends the imperative WorldLib libraries (idraw and adraw) with support for playing sounds to accompany the game. It also supports programming of music and sounds as a standalone activity. The programmer just selects the instruments to be played, the notes to be played in response to key events, or on each tick of the clock. The applet variant of the library allows the programmer to publish the drawing, animation, or a game as a Java applet without any changes in the original program.


This software is distributed under the LGPL license.

Partial support for this project has been provided by the NSF grant Redesigning Introductory Computing: The Design Discipline (DUE-0618543) and by the NSF grant Integrating Test Design into Computing Curriculum from the Beginning (DUE-0920182)

For information about these libraries and to report bugs please e-mail Viera K. Proulx


last updated on Mon May 16 14:31:18 EDT 2011generated with DrRacket