Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
E
G
I
M
R
S
V
A
addItem(Item)
- Method in class
Catalog
Add an Item to this Catalog.
addItem(Item)
- Method in class
ShoppingCart
Add an Item to this ShoppingCart.
C
Catalog
- class
Catalog
.
A Catalog models the collection of Items that an EStore might carry.
Catalog()
- Constructor for class
Catalog
Construct a Catalog object.
E
EStore
- class
EStore
.
An EStore object simulates the behavior of a simple on line shopping web site.
EStore(String, Terminal)
- Constructor for class
EStore
Construct a new EStore.
G
getCost()
- Method in class
Item
How much does this Item cost?
getCost()
- Method in class
ShoppingCart
What happens when this ShoppingCart is asked the total cost of the Items it contains.
getCount()
- Method in class
ShoppingCart
What happens when this ShoppingCart is asked how many Items it contains.
getItem(String)
- Method in class
Catalog
Get an Item from this Catalog.
getName()
- Method in class
Item
What is this Item called?
I
Item
- class
Item
.
An Item models an object that might be stocked in a store.
Item(String, int)
- Constructor for class
Item
Construct an Item object.
M
main(String[])
- Static method in class
EStore
The EStore simulation program begins here when the user issues the command
java EStore
If first command line argument is "-e" instantiate a Terminal that echoes its input.
R
returnItem(Item)
- Method in class
ShoppingCart
Return an Item from this ShoppingCart.
S
ShoppingCart
- class
ShoppingCart
.
A ShoppingCart keeps track of a customer's purchases.
ShoppingCart()
- Constructor for class
ShoppingCart
Construct a new empty ShoppingCart.
show(Terminal)
- Method in class
Catalog
Display the contents of this Catalog.
showContents(Terminal)
- Method in class
ShoppingCart
Write the contents of this ShoppingCart to a Terminal.
V
visit()
- Method in class
EStore
Visit this EStore.
A
C
E
G
I
M
R
S
V
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes