// #7 SHELL package ooos; import java.util.Vector; // What does UML say about inheritance? public class PrioQueue { public PrioQueue(String name) { // Where is the storage for name? // How to transfer the data? } // This method is required in all Queue subclasses public void enqueue(Object obj) { // 1: get the priority of the obj parameter, which is known to be a Proc // 2: iterate through the vector looking for the insertion spot based on descending priorities } // This is an additional method for PrioQueue, used by the Scheduler // public int maxKey() { // 1a: IF // 1b: ELSE // 1b_1: first line // 1b_2: second line // } }