S - the state type.A - the action type.public class LookupPolicy<S,A extends Action> extends java.lang.Object implements Policy<S,A>
| Constructor and Description |
|---|
LookupPolicy(java.util.Map<S,A> aPolicy) |
| Modifier and Type | Method and Description |
|---|---|
A |
action(S s)
π(s) is the action recommended by the policy π for state s.
|