CS 231: Lab #6

We're going to work through how to design a randomized iterator in lab.

Documentation for Java 1.5 is located at: Java 1.5 SE API.

Documentation for Java 1.6 is located at: Java 1.6 SE API

Tasks

  1. How can we make quick and easy iterators for the non-random case?
  2. What information do we need to store for the random iterator case?
  3. How do we initialize our random iterator?
  4. Can we have just two classes--one for random, one for ordered--to handle all three types of stuff (Agents, Resources, and Obstacle)?

For more details, see this week's assignment.