COMP2396
|
Public Member Functions | |
VendingMachine () | |
void | addProduct (Product p) |
void | deductProductQuantity (Product p) |
void | dumpAllCoins () |
ArrayList< ArrayList< Integer > > | getGroupedInsertedCoins () |
ArrayList< Integer > | getInsertedCoins () |
Product | getProduct (String name) |
int | getTotalInsertedCoinsAmount () |
void | insertCoin (Integer c) |
void | removeCoin (Integer c) |
Private Attributes | |
ArrayList< Integer > | insertedCoins |
ArrayList< Product > | products |
Definition at line 4 of file VendingMachine.java.
|
inline |
Definition at line 11 of file VendingMachine.java.
References insertedCoins, and products.
|
inline |
Definition at line 16 of file VendingMachine.java.
References products.
Referenced by Main.main().
|
inline |
Definition at line 35 of file VendingMachine.java.
References Product.getQuantity(), and Product.setQuantity().
Referenced by CmdPurchase.execute().
|
inline |
Definition at line 31 of file VendingMachine.java.
References insertedCoins.
Referenced by CmdPurchase.execute(), and CmdRejectCoins.execute().
|
inline |
Definition at line 44 of file VendingMachine.java.
References insertedCoins.
Referenced by CmdRejectCoins.execute().
|
inline |
Definition at line 40 of file VendingMachine.java.
References insertedCoins.
|
inline |
Definition at line 71 of file VendingMachine.java.
References products.
Referenced by CmdCheckProductInfo.execute(), and CmdPurchase.execute().
|
inline |
Definition at line 63 of file VendingMachine.java.
References insertedCoins.
Referenced by CmdInsertCoin.execute(), CmdPurchase.execute(), and CmdRejectCoins.execute().
|
inline |
Definition at line 20 of file VendingMachine.java.
References insertedCoins.
Referenced by CmdInsertCoin.execute().
|
inline |
Definition at line 27 of file VendingMachine.java.
References insertedCoins.
|
private |
Definition at line 6 of file VendingMachine.java.
Referenced by VendingMachine(), dumpAllCoins(), getGroupedInsertedCoins(), getInsertedCoins(), getTotalInsertedCoinsAmount(), insertCoin(), and removeCoin().
|
private |
Definition at line 9 of file VendingMachine.java.
Referenced by VendingMachine(), addProduct(), and getProduct().