|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object agent.Action
public abstract class Action
A abstract class for actions in an agent environment. Each type of action (an element of the set Ac) should be a separate subclass of this one.
Constructor Summary | |
---|---|
Action()
|
Method Summary | |
---|---|
abstract State |
execute(Agent a,
State s)
Return the State of the environment that results after Agent a executes the Action in State s. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Action()
Method Detail |
---|
public abstract State execute(Agent a, State s)
DESIGN NOTE: The choice to divide the state transformer into separate methods for each action is essentially one of modularity. We suggest that having each action "know" what its effects are is more natural than having the environment (or each state) know how states are changed by actions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |