Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
abstract State |
execute(Agent a,
State s)
Return the State of the environment that results after Agent a
executes the Action in State s.
|
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.