Driver.java

 package ProductConfig; public class Driver { // Put some stuff in the part list public static void fillPartList(PartList list) { Part newPart = new SimplePart("Aplo2", "Apollo 2 Motherboard",109); // provides PCI slots+ newPart.getResourceList().addResource("PCI Slots",5); newPart.getResourceList().addResource("DIMM",3); newPart.getResourceList().addResource("AGP Port",1); newPart.getResourceList().addResource("Slot 1",1); // consumes a motherboard newPart.getResourceList().removeResource("Motherboard",1); list.addPart(newPart); newPart = new SimplePart("Sota24", "Sota 24",115); // provides PCI slots+ newPart.getResourceList().addResource("PCI Slots",5); newPart.getResourceList().addResource("DIMM",3); newPart.getResourceList().addResource("Slot ...

Get Joy of Patterns: Using Patterns for Enterprise Development, The now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.