Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addCoffeeTruck() - Method in class com.ccprog3.CLISingleton
- addCoffeeTruck() - Method in class com.ccprog3.GUISingleton
- addCoffeeTruck() - Method in interface com.ccprog3.UI
-
Display for creating a new
CoffeeTruck
- addCoffeeTruck(CoffeeTruck) - Method in class com.ccprog3.UserSingleton
-
Adds a
CoffeeTruck
- addQuantity(double) - Method in class com.ccprog3.coffeeTruck.StorageBin
-
Adds to the quantity of the
StorageBin
. - addStorageBinQuantity() - Method in class com.ccprog3.CLISingleton
- addStorageBinQuantity() - Method in class com.ccprog3.GUISingleton
- addStorageBinQuantity() - Method in interface com.ccprog3.UI
-
Display to ask user for the quantity of
Ingredient
to add to aStorageBin
- ALMOND - Enum constant in enum class com.ccprog3.ingredients.SyrupIngredient
-
Almond
- App - Class in com.ccprog3
-
Driver class
- App() - Constructor for class com.ccprog3.App
-
Default constructor
B
- BORDER - Enum constant in enum class com.ccprog3.gui.Colors
-
Border color
- buyCoffee(boolean) - Method in class com.ccprog3.CLISingleton
- buyCoffee(boolean) - Method in class com.ccprog3.GUISingleton
- buyCoffee(boolean) - Method in interface com.ccprog3.UI
-
Asks the user for
Coffee
to buy
C
- CAFE_AMERICANO - Enum constant in enum class com.ccprog3.coffee.CoffeeType
-
Cafe Americano 1:2 Water
- calculatePrice(Coffee, UserSingleton) - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Calculates the price of the
Coffee
- calculatePrice(Coffee, UserSingleton) - Method in class com.ccprog3.coffeeTruck.SpecialCoffeeTruck
- CAPPUCCINO - Enum constant in enum class com.ccprog3.coffee.CoffeeType
-
Cappuccino 1:2 Milk
- CHOCOLATE - Enum constant in enum class com.ccprog3.ingredients.SyrupIngredient
-
Chocolate
- chooseCoffeeTruck(List<CoffeeTruck>) - Method in class com.ccprog3.CLISingleton
- chooseCoffeeTruck(List<CoffeeTruck>) - Method in class com.ccprog3.GUISingleton
- chooseCoffeeTruck(List<CoffeeTruck>) - Method in interface com.ccprog3.UI
-
Display for choosing the available Coffee Trucks from the user
- chooseStorageBin(List<StorageBin>) - Method in class com.ccprog3.CLISingleton
- chooseStorageBin(List<StorageBin>) - Method in class com.ccprog3.GUISingleton
- chooseStorageBin(List<StorageBin>) - Method in interface com.ccprog3.UI
-
Display for choosing the available Storage Bins from the
CoffeeTruck
- CLISingleton - Class in com.ccprog3
-
CLI user interface
- close() - Method in class com.ccprog3.CLISingleton
- close() - Method in class com.ccprog3.ControllerSingleton
- close() - Method in class com.ccprog3.UserSingleton
- Coffee - Class in com.ccprog3.coffee
-
Class to store Coffee details
- Coffee(CoffeeType, Ingredient) - Constructor for class com.ccprog3.coffee.Coffee
-
Coffee
class constructor - COFFEE_BEANS - Enum constant in enum class com.ccprog3.ingredients.Ingredient
-
Coffee Beans 1008 g
- CoffeeTruck - Class in com.ccprog3.coffeeTruck
-
Coffee Truck class
- CoffeeTruck(String, StorageBin[]) - Constructor for class com.ccprog3.coffeeTruck.CoffeeTruck
-
CoffeeTruck
constructor - coffeeTruckInfo(CoffeeTruck, UserSingleton) - Method in class com.ccprog3.CLISingleton
- coffeeTruckInfo(CoffeeTruck, UserSingleton) - Method in class com.ccprog3.GUISingleton
- coffeeTruckInfo(CoffeeTruck, UserSingleton) - Method in interface com.ccprog3.UI
-
Displays info of a
CoffeeTruck
- CoffeeType - Enum Class in com.ccprog3.coffee
-
Types of
Coffee
products - Colors - Enum Class in com.ccprog3.gui
-
GUI Color scheme
- com.ccprog3 - package com.ccprog3
- com.ccprog3.coffee - package com.ccprog3.coffee
- com.ccprog3.coffeeTruck - package com.ccprog3.coffeeTruck
- com.ccprog3.gui - package com.ccprog3.gui
- com.ccprog3.ingredients - package com.ccprog3.ingredients
- ControllerSingleton - Class in com.ccprog3
-
App controller
- cup - Variable in class com.ccprog3.coffee.Coffee
-
Cup size of the
Coffee
- CUSTOM - Enum constant in enum class com.ccprog3.coffee.Espresso
-
Custom brew 1:?
- CustomButton - Class in com.ccprog3.gui
-
Custom Button component for custom design
- CustomButton(String, ActionListener) - Constructor for class com.ccprog3.gui.CustomButton
-
Constructor for
CustomButton
component - CustomComboBox<E> - Class in com.ccprog3.gui
-
Custom Combo Box component for custom design
- CustomComboBox(E[]) - Constructor for class com.ccprog3.gui.CustomComboBox
-
Constructor for
CustomComboBox
component - CustomDialog - Class in com.ccprog3.gui
-
Custom Dialog component for custom design
- CustomDialog(JFrame, String, JPanel) - Constructor for class com.ccprog3.gui.CustomDialog
-
Constructor for
CustomDialog
component - CustomLabel - Class in com.ccprog3.gui
-
Custom Label component for custom design
- CustomLabel(String, int) - Constructor for class com.ccprog3.gui.CustomLabel
-
Constructor for
CustomLabel
component - CustomSpecialCoffee - Class in com.ccprog3.coffee
-
SpecialCoffee
with a custom brew ratio - CustomSpecialCoffee(CoffeeType, Ingredient, int, SyrupIngredient[], Espresso[]) - Constructor for class com.ccprog3.coffee.CustomSpecialCoffee
-
Constructor for
SpecialCoffee
with custom brew ratio - CustomTextField - Class in com.ccprog3.gui
-
Custom Text Field component for custom design
- CustomTextField(String) - Constructor for class com.ccprog3.gui.CustomTextField
-
Constructor for
CustomTextField
component
D
- dashboard(List<CoffeeTruck>) - Method in class com.ccprog3.CLISingleton
- dashboard(List<CoffeeTruck>) - Method in class com.ccprog3.GUISingleton
- dashboard(List<CoffeeTruck>) - Method in interface com.ccprog3.UI
-
Shows the dashboard summary of the Coffee Trucks
- displayErr(Exception) - Method in class com.ccprog3.CLISingleton
- displayErr(Exception) - Method in class com.ccprog3.GUISingleton
- displayErr(Exception) - Method in interface com.ccprog3.UI
-
Displays error message
- DropdownWithNumberInput<E> - Class in com.ccprog3.gui
-
Combo Box with number Text Field
- DropdownWithNumberInput(E[], String) - Constructor for class com.ccprog3.gui.DropdownWithNumberInput
-
Constructor for the component
E
- emptyStorageBin(int) - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Empties a
StorageBin
- emptyStorageBin(int) - Method in class com.ccprog3.coffeeTruck.SpecialCoffeeTruck
- Espresso - Enum Class in com.ccprog3.coffee
-
Types of Espresso brews
F
- FAVICON - Enum constant in enum class com.ccprog3.gui.Images
-
App icon
- FL_OZ - Enum constant in enum class com.ccprog3.ingredients.Unit
-
Fluid ounce (fl oz)
- flozToG(double) - Static method in enum class com.ccprog3.ingredients.Unit
-
Converts Fluid ounce to grams
- FRAME_BACKGROUND - Enum constant in enum class com.ccprog3.gui.Images
-
Frame background
G
- getAllIngredients() - Method in class com.ccprog3.coffee.Coffee
-
Gets the total Ingredients required to make the
Coffee
- getAllIngredients() - Method in class com.ccprog3.coffee.SpecialCoffee
- getAmount() - Method in class com.ccprog3.Money
-
Gets the amount of money
- getCoffeePrices() - Method in class com.ccprog3.UserSingleton
-
Gets the prices of Coffee Types per fluid ounce
- getCoffeeTrucks() - Method in class com.ccprog3.UserSingleton
-
Gets the List of Coffee Trucks
- getColor() - Method in enum class com.ccprog3.gui.Colors
-
Gets the color
- getComboBox() - Method in class com.ccprog3.gui.DropdownWithNumberInput
-
Gets the Combo Box component
- getCup() - Method in class com.ccprog3.coffee.Coffee
-
Gets the Cup size
- getCupVolume() - Method in enum class com.ccprog3.ingredients.Ingredient
-
Gives the volume of any Cup in fl oz
- getEspresso() - Method in class com.ccprog3.coffee.SpecialCoffee
-
Gets the
Espresso
brew - getEspressoIngredients() - Method in class com.ccprog3.coffee.Coffee
-
Gets the Ingredients required to make the
Espresso
- getEspressoIngredients() - Method in class com.ccprog3.coffee.CustomSpecialCoffee
- getEspressoIngredients() - Method in class com.ccprog3.coffee.SpecialCoffee
- getEspressoPrices() - Method in class com.ccprog3.UserSingleton
-
Gets the prices of
Espresso
shots per fluid ounce - getImage() - Method in enum class com.ccprog3.gui.Images
-
Gets the image
- getIngredient() - Method in class com.ccprog3.coffeeTruck.StorageBin
-
Gets the
Ingredient
stored - getIngredients() - Method in class com.ccprog3.coffee.Coffee
-
Gets the Ingredients required to make the
Coffee
without theEspresso
- getIngredients() - Method in enum class com.ccprog3.coffee.CoffeeType
-
Gives the raw Ingredients needed in percent
- getIngredients() - Method in enum class com.ccprog3.coffee.Espresso
-
Gives the raw Ingredients needed in percent
- getInstance() - Static method in class com.ccprog3.CLISingleton
-
Gets the
CLISingleton
instance - getInstance() - Static method in class com.ccprog3.ControllerSingleton
-
Gets the
ControllerSingleton
instance - getInstance() - Static method in class com.ccprog3.GUISingleton
-
Gets the
GUISingleton
instance - getInstance() - Static method in class com.ccprog3.UserSingleton
-
Gets the
UserSingleton
instance - getLocation() - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Gets the Truck location
- getMax() - Method in enum class com.ccprog3.ingredients.Ingredient
-
Returns the max capacity a
StorageBin
can hold of theIngredient
- getQuantity() - Method in class com.ccprog3.coffeeTruck.StorageBin
-
Gets the quantity
- getResultList() - Method in class com.ccprog3.gui.ListAdder
-
Gets the List of added elements
- getSales() - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Gets the
CoffeeTruck
sales - getShotIngredients() - Method in class com.ccprog3.coffee.SpecialCoffee
-
Gets the Ingredients required to make the extra shots
- getShots() - Method in class com.ccprog3.coffee.SpecialCoffee
-
Gets the List of extra shots
- getStorageBins() - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Gets the
StorageBin
List - getStorageBins() - Method in class com.ccprog3.coffeeTruck.SpecialCoffeeTruck
- getSyrupIngredient() - Method in class com.ccprog3.coffeeTruck.SpecialStorageBin
-
Gets the
SyrupIngredient
stored - getSyrupIngredients() - Method in class com.ccprog3.coffee.SpecialCoffee
-
Gets the Ingredients required to make the Syrup
- getSyrupPrices() - Method in class com.ccprog3.UserSingleton
-
Gets the prices of Syrup Ingredients per fluid ounce
- getSyrups() - Method in class com.ccprog3.coffee.SpecialCoffee
-
Gets the List of Syrup addons
- getTextField() - Method in class com.ccprog3.gui.DropdownWithNumberInput
-
Gets the Text Field component
- getType() - Method in class com.ccprog3.coffee.Coffee
-
Gets the
CoffeeType
- getUnit() - Method in enum class com.ccprog3.ingredients.Ingredient
-
Gets the unit of measurement for the
Ingredient
- getUnit() - Method in enum class com.ccprog3.ingredients.SyrupIngredient
-
Gets the unit of measurement for the
SyrupIngredient
- getUsername() - Method in class com.ccprog3.UserSingleton
-
Gets the username
- GRAMS - Enum constant in enum class com.ccprog3.ingredients.Unit
-
Grams (g)
- GUISingleton - Class in com.ccprog3
-
GUI user interface
H
- HAZELNUT - Enum constant in enum class com.ccprog3.ingredients.SyrupIngredient
-
Hazelnut
I
- Images - Enum Class in com.ccprog3.gui
-
Image library
- Ingredient - Enum Class in com.ccprog3.ingredients
-
Ingredient types
L
- LARGE_CUP - Enum constant in enum class com.ccprog3.ingredients.Ingredient
-
Large Cup 40 pcs
- LATTE - Enum constant in enum class com.ccprog3.coffee.CoffeeType
-
Latte 1:4 Milk
- LIGHT - Enum constant in enum class com.ccprog3.coffee.Espresso
-
Light brew 1:20
- ListAdder<E> - Class in com.ccprog3.gui
-
List adder and remover
- ListAdder(E[]) - Constructor for class com.ccprog3.gui.ListAdder
-
Constructor for the component
- login() - Method in class com.ccprog3.CLISingleton
- login() - Method in class com.ccprog3.ControllerSingleton
-
Logs the user in
- login() - Method in class com.ccprog3.GUISingleton
- login() - Method in interface com.ccprog3.UI
-
Logs the user in
- login(String) - Method in class com.ccprog3.UserSingleton
-
Logs the user in (opens save file)
M
- main(String[]) - Static method in class com.ccprog3.App
-
Main function entry point
- mainMenu() - Method in class com.ccprog3.ControllerSingleton
-
Main menu for the program.
- makeCoffee(Coffee, UserSingleton) - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Checks and subtracts the required stocks to make the
Coffee
- makeCoffee(Coffee, UserSingleton) - Method in class com.ccprog3.coffeeTruck.SpecialCoffeeTruck
- makeCoffee(Map.Entry<Coffee, Money>) - Method in class com.ccprog3.CLISingleton
- makeCoffee(Map.Entry<Coffee, Money>) - Method in class com.ccprog3.GUISingleton
- makeCoffee(Map.Entry<Coffee, Money>) - Method in interface com.ccprog3.UI
-
Shows the process of making a
Coffee
- MEDIUM_CUP - Enum constant in enum class com.ccprog3.ingredients.Ingredient
-
Medium Cup 64 pcs
- menu(Map<String, Supplier<Boolean>>) - Method in class com.ccprog3.CLISingleton
- menu(Map<String, Supplier<Boolean>>) - Method in class com.ccprog3.GUISingleton
- menu(Map<String, Supplier<Boolean>>) - Method in interface com.ccprog3.UI
-
Radio display function
- MILK - Enum constant in enum class com.ccprog3.ingredients.Ingredient
-
Milk 640 fl oz
- Money - Class in com.ccprog3
-
Money class to validate money amount
- Money(float) - Constructor for class com.ccprog3.Money
-
Constructor for
Money
class
N
- NEUTRAL - Enum constant in enum class com.ccprog3.gui.Colors
-
Neutral color
- NONE - Enum constant in enum class com.ccprog3.ingredients.Ingredient
-
Empty or
SyrupIngredient
640 fl oz - NONE - Enum constant in enum class com.ccprog3.ingredients.SyrupIngredient
-
Empty
P
- paintComponent(Graphics) - Method in class com.ccprog3.gui.CustomButton
- paintComponent(Graphics) - Method in class com.ccprog3.gui.CustomTextField
- PIECES - Enum constant in enum class com.ccprog3.ingredients.Unit
-
Pieces (pcs)
- PRIMARY - Enum constant in enum class com.ccprog3.gui.Colors
-
Primary color
- PRIMARY_BACKGROUND - Enum constant in enum class com.ccprog3.gui.Images
-
Primary background
R
- removeCoffeeTruck(int) - Method in class com.ccprog3.UserSingleton
-
Removes a
CoffeeTruck
S
- setCoffeePrices(Map<CoffeeType, Money>) - Method in class com.ccprog3.UserSingleton
-
Sets the prices of the given Coffee Types per fluid ounce
- setCoffeeTruckLocation() - Method in class com.ccprog3.CLISingleton
- setCoffeeTruckLocation() - Method in class com.ccprog3.GUISingleton
- setCoffeeTruckLocation() - Method in interface com.ccprog3.UI
-
Display to ask the user for a new location
- setCoffeeTruckLocation(String, int) - Method in class com.ccprog3.UserSingleton
-
Sets the new
CoffeeTruck
location - setEspressoPrices(Map<Espresso, Money>) - Method in class com.ccprog3.UserSingleton
-
Sets the prices of the given
Espresso
shots per fluid ounce - setLocation(String) - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Sets the Truck location
- setPrices(Class<E>) - Method in class com.ccprog3.CLISingleton
- setPrices(Class<E>) - Method in class com.ccprog3.GUISingleton
- setPrices(Class<E>) - Method in interface com.ccprog3.UI
-
Asks the user for new prices to set
- setStorageBin(boolean) - Method in class com.ccprog3.CLISingleton
- setStorageBin(boolean) - Method in class com.ccprog3.GUISingleton
- setStorageBin(boolean) - Method in interface com.ccprog3.UI
-
Display to ask the user for a new
StorageBin
to replace the selected one - setStorageBin(StorageBin, int) - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Sets a new
Ingredient
into aStorageBin
- setStorageBin(StorageBin, int) - Method in class com.ccprog3.coffeeTruck.SpecialCoffeeTruck
- setSyrupPrices(Map<SyrupIngredient, Money>) - Method in class com.ccprog3.UserSingleton
-
Sets the prices of the given Syrup Ingredients per fluid ounce
- SMALL_CUP - Enum constant in enum class com.ccprog3.ingredients.Ingredient
-
Small Cup 80 pcs
- SpecialCoffee - Class in com.ccprog3.coffee
-
Special Coffee from
SpecialCoffeeTruck
- SpecialCoffee(CoffeeType, Ingredient, Espresso, SyrupIngredient[], Espresso[]) - Constructor for class com.ccprog3.coffee.SpecialCoffee
-
SpecialCoffee
constructor - SpecialCoffeeTruck - Class in com.ccprog3.coffeeTruck
-
Special Coffee Truck with special features
- SpecialCoffeeTruck(String, StorageBin[], SpecialStorageBin[]) - Constructor for class com.ccprog3.coffeeTruck.SpecialCoffeeTruck
-
CoffeeTruck
constructor - SpecialStorageBin - Class in com.ccprog3.coffeeTruck
-
Special Storage Bin class to contain Syrup Ingredients
- SpecialStorageBin(SyrupIngredient, double) - Constructor for class com.ccprog3.coffeeTruck.SpecialStorageBin
-
SpecialStorageBin
constructor - STANDARD - Enum constant in enum class com.ccprog3.coffee.Espresso
-
Standard brew 1:18
- StorageBin - Class in com.ccprog3.coffeeTruck
-
Storage Bin class to store Ingredients
- StorageBin(Ingredient, double) - Constructor for class com.ccprog3.coffeeTruck.StorageBin
-
StorageBin
constructor - storageBins - Variable in class com.ccprog3.coffeeTruck.CoffeeTruck
-
Storage Bins to store Ingredients
- STRONG - Enum constant in enum class com.ccprog3.coffee.Espresso
-
Strong brew 1:15
- SWEETENER - Enum constant in enum class com.ccprog3.ingredients.SyrupIngredient
-
Sweetener
- SyrupIngredient - Enum Class in com.ccprog3.ingredients
-
Syrup Ingredient types
T
- TEXT - Enum constant in enum class com.ccprog3.gui.Colors
-
Text color
- TextPanel - Class in com.ccprog3.gui
-
Panel to show text
- TextPanel() - Constructor for class com.ccprog3.gui.TextPanel
-
Constructor for the component
- TITLE - Enum constant in enum class com.ccprog3.gui.Images
-
App title
- toString() - Method in class com.ccprog3.coffee.Coffee
- toString() - Method in enum class com.ccprog3.coffee.CoffeeType
- toString() - Method in class com.ccprog3.coffee.SpecialCoffee
- toString() - Method in class com.ccprog3.coffeeTruck.CoffeeTruck
- toString() - Method in class com.ccprog3.coffeeTruck.SpecialCoffeeTruck
- toString() - Method in class com.ccprog3.coffeeTruck.SpecialStorageBin
- toString() - Method in class com.ccprog3.coffeeTruck.StorageBin
- toString() - Method in enum class com.ccprog3.ingredients.Ingredient
- toString() - Method in enum class com.ccprog3.ingredients.Unit
- toString() - Method in class com.ccprog3.Money
- type - Variable in class com.ccprog3.coffee.Coffee
-
Type of
Coffee
product
U
- UI - Interface in com.ccprog3
-
UI for user display and input
- Unit - Enum Class in com.ccprog3.ingredients
-
Units of measurement for
StorageBin
items - UserSingleton - Class in com.ccprog3
-
User class for the runtime instance
V
- valueOf(String) - Static method in enum class com.ccprog3.coffee.CoffeeType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ccprog3.coffee.Espresso
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ccprog3.gui.Colors
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ccprog3.gui.Images
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ccprog3.ingredients.Ingredient
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ccprog3.ingredients.SyrupIngredient
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ccprog3.ingredients.Unit
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.ccprog3.coffee.CoffeeType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ccprog3.coffee.Espresso
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ccprog3.gui.Colors
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ccprog3.gui.Images
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ccprog3.ingredients.Ingredient
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ccprog3.ingredients.SyrupIngredient
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ccprog3.ingredients.Unit
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VANILLA - Enum constant in enum class com.ccprog3.ingredients.SyrupIngredient
-
Vanilla
W
- WATER - Enum constant in enum class com.ccprog3.ingredients.Ingredient
-
Water 640 fl oz
All Classes and Interfaces|All Packages|Serialized Form