|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Interface Summary | |
| Directions | This interface is a bare wrapper for Bergin's Directions
interface. |
| RobotTask | This class defines the common interface for all robot task objects. |
| Class Summary | |
| Browser | This class provides a simple interface to your web browser. |
| IOHelper | This class provides several static methods that streamline the use of basic I/O operations in Java. |
| MazeGenerator | The class generates mazes for Karel J. |
| Robot | This class is a simple wrapper for Bergin's Robot. |
| RunRobotTask | This class represents a main program that takes a command-line
argument that names a RobotTask; it creates an instance
of the named task and then runs it. |
| TestableRobot | This class extends Robot with assertion capabilities, adding a
number of methods useful in writing test cases and in using test-driven
development. |
| TestableWorld | This class provides the basic assertion capabilities for Karel's
World in the form of methods useful for writing test cases. |
| ur_Robot | This class is a simple wrapper for Bergin's ur_Robot
class and represents a minimal robot. |
| Version | This class allows access to the package version information. |
| VPIRobot | A class that represents a robot. |
| World | This class can be used to build and maintain the world in which robots work and play. |
This package provides all of the course-specific classes written especially for CS 1705: Introduction to Object-Oriented Development I.
There are one interface and two main classes in this package that students use directly:
RobotTask: a base interface for
all robot "tasks" providing one method signature:
void task(). Most main robot programs consist of
a specialized class implementing this interface.
VPIRobot: the base class for
all of your robots. It is a lot like the ur_Robot
discussed in Bergin's book, but also adds a number of testing
capabilities and a default constructor (you can create one
without giving any parameters, if you like).
World: this is the class for
accessing the robot's world. It is similar in many respects
to Bergin's World class, but it is possible to
get an instance of this world as an object on the object bench
in BlueJ, and then call testing-oriented methods on it directly.
For those of you who are adventurous, there is a world builder that you can use to directly edit Karel world description files. It only works on files stored on the local disk, not on URLs, of course. You can invoke it from a command line window:
java -cp C:/BlueJ/lib/cs1705.jar kareltherobot.WorldBuilder
If you are working on your own machine, you can create a shortcut for this purpose.
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||