Class Seller

java.lang.Object
  extended by Seller

public class Seller
extends java.lang.Object

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

Seller

public Seller()
Method Detail

auctionCompleted

public void auctionCompleted(Item item,
                             Bid bid)
method invoked by Auctioneer when auction completes.

Parameters:
item - the item that has been sold
bid - the winning bid. If null, then tha auction has completed without any bid.

buyItem

public void buyItem(Item item,
                    Bid bid)
buyer buys item from this seller.

Parameters:
item - the item that has been sold
bid - the winning bid.