@@ -0,0 +1,1082 @@
+package com.oozinoz.control;%0A%0Aimport com.oozinoz.machine.*;%0A%0A/*%0A * Copyright (c) 2001 Steven J. Metsker.%0A * %0A * Steve Metsker makes no representations or warranties about%0A * the fitness of this software for any particular purpose, %0A * including the implied warranty of merchantability.%0A *%0A * Please use this software as you wish with the sole%0A * restriction that you may not claim that you wrote it.%0A */%0A/**%0A * This class shows a refactoring of its MachineController_%0A * predecessor. The abstract operations are now moved out%0A * into a interface for drivers.%0A *%0A * @author Steven J. Metsker%0A *%0A */%0Apublic class MachineController %0A%7B%0A%09protected MachineDriver driver;%0A/**%0A * Return true if there is no more room in the input queue.%0A *%0A * @return true if there is no more room in the input queue%0A */%0Apublic boolean inputFull()%0A%7B%0A%09return driver.getQueueMax() %3E= getQueue().size();%0A%7D%0A%0A%09protected Queue queue = new Queue();%0A%0A/**%0A * Return the queue of bins waiting for this machine.%0A *%0A * @return the queue of bins waiting for this machine%0A */%0Apublic Queue getQueue()%0A%7B%0A%09return queue;%0A%7D%0A%7D%0A

Create MachineController.java