@@ -0,0 +1,1250 @@
+package 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/**%0A * This is a minimal model of a %22bin,%22 a large plastic%0A * rectangular basket that holds fireworks materials as%0A * they go through the factory.%0A *%0A * @author Steven J. Metsker%0A *%0A */%0Apublic class Bin %0A%7B%0A%09protected String id;%0A%0A%0A/**%0A * Return the machine that this bin is at or on.%0A *%0A * @return the machine that this bin is at or on%0A */%0Apublic Machine getMachine()%0A%7B%0A%09return machine;%0A%7D%0A/**%0A * Set the machine that this bin is at or on.%0A *%0A * @param machine the machine that this bin is at or on%0A */%0Apublic void setMachine(Machine machine)%0A%7B%0A%09this.machine = machine;%0A%7D%0A/**%0A * Return a textual representation of this bin.%0A *%0A * @return a textual representation of this bin%0A */%0Apublic String toString()%0A%7B%0A%09return id;%0A%7D%0A%0A%09protected Machine machine;%0A%0A/**%0A * Create a bin with the given id.%0A *%0A * @param id the identity of this bin%0A */%0Apublic Bin(String id)%0A%7B%0A%09this.id = id;%0A%7D%0A%7D%0A

Create bin.java