Class AuctionSystem

java.lang.Object
  extended by AuctionSystem

public class AuctionSystem
extends java.lang.Object

the auction system class. Aggregates the main system components and provides entry points for user services. NOTE: The purpose of this code is to illustrate implementation starting from UML class and sequence diagrams. It may be incomplete and may not compile.


Field Summary
private  ActiveList activeList
          the active auctions list
private  ListingArchive arch
          the listing archive
 
Constructor Summary
AuctionSystem()
          constructs the auction system
 
Method Summary
 BrowseList getBrowseList()
          return a browseable list of active listings, but NOT the ActiveList object.
 AuctionListing listItem(Item item, java.util.Date deadline, double price)
          adds a new Item for sale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activeList

private ActiveList activeList
the active auctions list


arch

private ListingArchive arch
the listing archive

Constructor Detail

AuctionSystem

public AuctionSystem()
constructs the auction system

Method Detail

getBrowseList

public BrowseList getBrowseList()
return a browseable list of active listings, but NOT the ActiveList object. Derived from the "Browse Items" use case.

Returns:
a browseable list of active listings, but NOT the ActiveList object.

listItem

public AuctionListing listItem(Item item,
                               java.util.Date deadline,
                               double price)
adds a new Item for sale. Derived from the "List an Item" use case.

Parameters:
item - the new item for sale
deadline - the auction deadline
price - the starting price
Returns:
the new AuctionListing object for this item