import java.util.*; public class HonoursCourse { public HonoursCourse() {} public HonoursCourse (String aname, HashSet modules) { permittedModules = modules; name = aname; } // The system is supposed to keep track of when it's ready and email it // to the UTO for printing. Best way to arrange this? boolean isHandbookReady () { Iterator i = permittedModules.iterator(); Module m; while (i.hasNext()) { m = (Module)i.next(); if (m.isUpToDate()) {} else {return false;} } return true; } public boolean isAcceptable(Module m) { return permittedModules.contains(m); } HashSet permittedModules = new HashSet(6); String name; String generalText; }