|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAuctioneer
public class Auctioneer
the auctioneer 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.
Nested Class Summary | |
---|---|
private class |
Auctioneer.AuctionCompletedTask
inner class that extends a TimerTask to provide a callback (run()) that invokes the auctioneer's auctionCompleted() method. |
Field Summary | |
---|---|
private AuctionListing |
al
the auction listing describing the item, bids and other elements |
private ListingArchive |
arch
auction listing archive |
Constructor Summary | |
---|---|
Auctioneer(ActiveList activeList,
AuctionListing al,
ListingArchive arch)
constructs the Auctioneer. |
Method Summary | |
---|---|
void |
auctionCompleted()
complete an auction. |
void |
enterBid(Bid bid)
enter a new bid for an item. |
void |
scheduleCompletion()
schedule auction completion. |
boolean |
validateBid(Bid bid)
validate a new bid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AuctionListing al
private ListingArchive arch
Constructor Detail |
---|
public Auctioneer(ActiveList activeList, AuctionListing al, ListingArchive arch)
Method Detail |
---|
public void auctionCompleted()
public void enterBid(Bid bid)
bid
- the new bid for this auction.public boolean validateBid(Bid bid)
bid
- the new bid for this auction.public void scheduleCompletion()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |