|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSeller
public class Seller
the Seller 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.
Constructor Summary | |
---|---|
Seller()
|
Method Summary | |
---|---|
void |
auctionCompleted(Item item,
Bid bid)
method invoked by Auctioneer when auction completes. |
void |
buyItem(Item item,
Bid bid)
buyer buys item from this seller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Seller()
Method Detail |
---|
public void auctionCompleted(Item item, Bid bid)
item
- the item that has been soldbid
- the winning bid. If null, then tha auction has
completed without any bid.public void buyItem(Item item, Bid bid)
item
- the item that has been soldbid
- the winning bid.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |