Class CashInventory

java.lang.Object
com.vikingcloud.horsetrack.model.CashInventory

public class CashInventory extends Object
Represents the ATM's bill inventory. Manages dispensing bills, displaying the inventory, getting bills for payout, and restocking.
  • Constructor Details

    • CashInventory

      public CashInventory()
  • Method Details

    • dispenseBills

      public void dispenseBills(Map<Integer,Integer> dispensed)
    • displayInventory

      public void displayInventory()
    • getBillsForPayout

      public Map<Integer,Integer> getBillsForPayout(int amount)
    • restock

      public void restock()