All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Index of all Fields and Methods
- act().
Method in class BouncingRobot
- BouncingRobot overrides the act() method.
- act().
Method in class FeelingRobot
- This overrides BouncingRobots act().
- act().
Method in class Robot
- This method is called periodically by run() if the robot is on.
- back.
Variable in class FeelingRobot
-
- BouncingRobot(Stepper, Color).
Constructor for class BouncingRobot
-
- CannotStepException().
Constructor for class CannotStepException
-
- CreativeRobotOwner().
Constructor for class CreativeRobotOwner
-
- DumbRobotOwner().
Constructor for class DumbRobotOwner
-
- FeelingRobot(Stepper, Color, Sensor, Sensor).
Constructor for class FeelingRobot
- FeelingRobot now also accepts Sensor objects for the
whiskers and tail, which are the front and back
sensors, respectively.
- Feet().
Constructor for class Feet
-
- front.
Variable in class FeelingRobot
-
- movingForward.
Variable in class BouncingRobot
-
- myStepper.
Variable in class Robot
-
- on.
Variable in class Robot
-
- RichRobotOwner(Robot[]).
Constructor for class RichRobotOwner
-
- Robot(Stepper, Color).
Constructor for class Robot
-
- RobotOwner().
Constructor for class RobotOwner
-
- run().
Method in class Robot
- run() has a while(true) whose body calls act() if the robot
is on, and does nothing otherwise.
- sensesSomething().
Method in interface Sensor
- returns true if the sensor is currently sensing something
otherwise returns false.
- sensesSomething().
Method in class Tail
- returns true if the sensor is currently sensing something
otherwise returns false.
- sensesSomething().
Method in class Whiskers
- returns true if the sensor is currently sensing something
otherwise returns false.
- stepBackward().
Method in class Feet
-
- stepBackward().
Method in interface Stepper
- move backward.
- stepBackward().
Method in class Wheels
-
- stepForward().
Method in class Feet
-
- stepForward().
Method in interface Stepper
- move forward one (and only one) step.
- stepForward().
Method in class Wheels
-
- switchOff().
Method in class Robot
- switchOff() turns the robot off
- switchOn().
Method in class Robot
- switchOn() turns the robot on
- Tail().
Constructor for class Tail
-
- Wheels().
Constructor for class Wheels
-
- Whiskers().
Constructor for class Whiskers
-