|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActiveList
public class ActiveList
the active auction list class.
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 ListingArchive |
arch
auction listing archive |
private java.util.ArrayList<AuctionListing> |
auctListings
collection of AuctionListing objects: |
Constructor Summary | |
---|---|
ActiveList(ListingArchive arch)
constructs the ActiveList |
Method Summary | |
---|---|
BrowseList |
getBrowseList()
creates and returns a browseable list of auction listings. |
AuctionListing |
listItem(Seller seller,
Item it,
java.util.Date deadline,
double price)
list a new item. |
void |
removeListing(AuctionListing al)
remove auction listing from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<AuctionListing> auctListings
private ListingArchive arch
Constructor Detail |
---|
public ActiveList(ListingArchive arch)
Method Detail |
---|
public void removeListing(AuctionListing al)
public AuctionListing listItem(Seller seller, Item it, java.util.Date deadline, double price)
it
- the new item for saledeadline
- the auction deadlineprice
- the starting price
public BrowseList getBrowseList()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |