|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCatMouseAnimator
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.
| Constructor Summary | |
CatMouseAnimator(Mdp mdp)
The constructor for this class for printing results to standard output. |
|
CatMouseAnimator(Mdp mdp,
java.io.PrintStream out)
The constructor for this class for printing results to a given print stream. |
|
| 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 |
| Constructor Detail |
public CatMouseAnimator(Mdp mdp)
public CatMouseAnimator(Mdp mdp,
java.io.PrintStream out)
| Method Detail |
public void animate(int[] pi,
int numSteps)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||