src/Main/InventoryManager.java
// Helper Method to create sample In-House parts
Helper Method to create sample In-House parts
Helper Method to create sample In - House parts
private void inHouseTestParts(
            String partName,
            int inventoryLevel,
            double price,
            int maxInventory,
            int minInventory,
            int machineID) {
        int partID = Inventory.getGeneratedPartID();
        InHouse newInHouseTest = new InHouse();
        newInHouseTest.setId(partID);
        newInHouseTest.setName(partName);
        newInHouseTest.setStock(inventoryLevel);
        newInHouseTest.setPrice(price);
        newInHouseTest.setMax(maxInventory);
        newInHouseTest.setMin(minInventory);
        newInHouseTest.setMachineID(machineID);
        addPart(newInHouseTest);
        associatedParts.add(newInHouseTest);
    }
private void inHouseTestParts ( String partName , int inventoryLevel , double price , int maxInventory , int minInventory , int machineID ) { int partID = Inventory . getGeneratedPartID ( ) ; InHouse newInHouseTest = new InHouse ( ) ; newInHouseTest . setId ( partID ) ; newInHouseTest . setName ( partName ) ; newInHouseTest . setStock ( inventoryLevel ) ; newInHouseTest . setPrice ( price ) ; newInHouseTest . setMax ( maxInventory ) ; newInHouseTest . setMin ( minInventory ) ; newInHouseTest . setMachineID ( machineID ) ; addPart ( newInHouseTest ) ; associatedParts . add ( newInHouseTest ) ; }
Helper Method to create sample In-House parts
Helper Method to create sample In - House parts