O'Reilly logo

Design Patterns Java™ Workbook by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required