Using Object.clone()

The Oozinoz application suite includes a visualization that shows users how material is flowing through machines on the factory floor. Now the business wants a simulation version of this screen to let the user experiment with releasing orders into the factory, changing machine attributes, and altering other aspects of the factory's operation. A particular feature your users want in the simulation is to be able to drag-and-drop a copy of a simulated machine. On this project, your job is to create the machine simulation objects, which you have completed as Figure 18.3 shows.

Figure 18.3. Machine simulations have at least a location and mean-time- between-failure for the machine.

Every machine simulation object has a mean-time-between-failure ...

Get Design Patterns Java™ Workbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.