|
CS 1705 Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RobotTask
This class defines the common interface for all robot task objects.
It defines two methods. A concrete robot task class should define
the task() method to create and initialize the desired robot(s)
and command them to behave. Also, the concrete task class should
define getRobot() to return the robot that is used in the task.
A RobotTask can be executed from the
command-line using RunRobotTask.
| Method Summary | |
|---|---|
WebBot |
getRobot()
This method provides access to the robot that carries out this task. |
void |
task()
This method encapsulates a sequence of instructions for creating and commanding one or more robots (see WebBot). |
| Method Detail |
|---|
void task()
WebBot).
Define it in any concrete class that implements this interface.
WebBot getRobot()
|
Last updated: Wed, Apr 1, 2009 12:29 AM EDT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||