|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAuctionSystem
public class AuctionSystem
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 |
---|
private ActiveList activeList
private ListingArchive arch
Constructor Detail |
---|
public AuctionSystem()
Method Detail |
---|
public BrowseList getBrowseList()
public AuctionListing listItem(Item item, java.util.Date deadline, double price)
item
- the new item for saledeadline
- the auction deadlineprice
- the starting price
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |