Class CatMouse

java.lang.Object
  extended byCatMouse

public class CatMouse
extends java.lang.Object

This class provides a simple main for running on cat and mouse data.


Constructor Summary
CatMouse()
           
 
Method Summary
static void main(java.lang.String[] argv)
          This is a simple main.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatMouse

public CatMouse()
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.io.FileNotFoundException,
                        java.io.IOException
This is a simple main. When invoked, the first argument gives the name of the file containing a description of the MDP, and the second optional argument gives the desired number of steps in the cat-mouse animation. This main simply loads the MDP, runs both value iteration and policy iteration on it, runs policy evaluation on the returned policy, prints out the optimal policies and utilities, and finally animates the cat chasing the mouse. Note that this animation will almost certainly crash if run on MDP's other than those for a cat chasing a mouse. If the second argument is omitted, the cat-mouse animation is skipped.

Throws:
java.io.FileNotFoundException
java.io.IOException