Actions
The AGENT is capable of taking a small, fixed number of ACTIONs at any
STATE in the WORLD:
- FORWARD
- Attempt to move forward - move one unit along the AGENT's
current ORIENTATION.
- BACK
- Attempt to move backward - move one unit in the
opposite DIRECTION of the AGENT's current ORIENTATION.
- TURNCOUNTERCLOCK
- Attempt to turn one sector in the counter-clockwise
direction. For example, if the AGENT's current ORIENTATION is
NorthWest, the TURNCOUNTERCLOCKaction attempts to change the AGENT's
ORIENTATION to West.
- TURNCLOCK
- Attempt to turn one sector in the clockwise direction.
For example, if the AGENT's current ORIENTATION is NorthWest,
the TURNCOUNTERCLOCKaction attempts to change the AGENT's ORIENTATION to
North.
- NOOP
- Attempt to do nothing, staying in the same LOCATION and not
changing ORIENTATION.
Note that while the AGENT may attempt to do something, the
environment may not play along. For example, the AGENT can't move
through walls, while attempting to turn one sector while standing in mud
may result in more (or less) turn than the AGENT intends. The WORLD
SIMULATOR is responsible for determining the outcome of any specific
ACTION.
ACTIONs are described by the Action interface in cs351_f05_p2_support-v1.jar
(not to be confused with the javax.swing.Action interface).
Terran Lane
2005-09-29