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