Class CatMouseAnimator
java.lang.Object
|
+--CatMouseAnimator
- public class CatMouseAnimator
- extends java.lang.Object
This class can be used to "animate" the interaction between a cat
and mouse. When the animate method is called, the MDP is
simulated with the mouse's movements being determined by the given
policy. The results are printed to standard output.
|
Method Summary |
void |
animate(int[] pi,
int numSteps)
This method will animate the mdp provided to the constructor
for numSteps steps, following policy pi. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatMouseAnimator
public CatMouseAnimator(Mdp mdp)
- The constructor for this class. Takes as input an
mdp. This mdp must correspond to a cat and
mouse world; otherwise, the constructor will almost certainly
crash.
animate
public void animate(int[] pi,
int numSteps)
- This method will animate the mdp provided to the constructor
for numSteps steps, following policy pi. The
results are printed to standard output.