Class CatMouse

  extended byCatMouse

public class CatMouse
extends java.lang.Object

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

Constructor Summary
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


public CatMouse()
Method Detail


public static void main(java.lang.String[] argv)
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.