Class EStore

java.lang.Object
  |
  +--EStore

public class EStore
extends Object

An EStore object simulates the behavior of a simple on line shopping web site. It contains a Terminal object to model the customer's browser and a Catalog of Items that may be purchased and then added to the customer's shoppingCart.

Version:
4

Constructor Summary
EStore(String storeName, Terminal browser)
          Construct a new EStore.
 
Method Summary
static void main(String[] args)
          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.
 void visit()
          Visit this EStore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EStore

public EStore(String storeName,
              Terminal browser)
Construct a new EStore.

Parameters:
storeName - the name of the EStore
browser - the visitor's Terminal.
Method Detail

main

public static void main(String[] args)
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. The next command line argument (if there is one) is the name of the EStore.

Parameters:
args - <-e>

visit

public void visit()
Visit this EStore. Execution starts here when the store opens for business. User can visit as a customer, act as the manager, or exit.