|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAuctionListing
public class AuctionListing
the auction listing class. It encapsulates all the information and object references necessary for the Auctioneer to do its jobs. 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 Auctioneer |
auctioneer
|
private BidHistory |
bidHist
|
(package private) java.util.Date |
deadline
|
private Item |
item
|
private Seller |
seller
|
(package private) double |
startPrice
|
Constructor Summary | |
---|---|
AuctionListing(Seller seller,
Item it,
java.util.Date deadline,
double price)
constructs the ActiveList |
Method Summary | |
---|---|
void |
addBid(Bid bid)
process a new bid for this auction. |
Auctioneer |
getAuctioneer()
gets the auctioneer object reference. |
java.util.Date |
getDeadline()
|
Bid |
getHighestBid()
accessor for the current highest bid. |
Item |
getItem()
|
double |
getPrice()
|
Seller |
getSeller()
|
void |
setAuctioneer(Auctioneer auctioneer)
sets the auctioneer object reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Item item
private BidHistory bidHist
private Seller seller
private Auctioneer auctioneer
java.util.Date deadline
double startPrice
Constructor Detail |
---|
public AuctionListing(Seller seller, Item it, java.util.Date deadline, double price)
seller
- the Seller objectit
- the Itemdeadline
- the auction deadlineprice
- the initial auction priceMethod Detail |
---|
public void setAuctioneer(Auctioneer auctioneer)
auctioneer
- the auctioneer referenceActiveList
public Auctioneer getAuctioneer()
public void addBid(Bid bid)
bid
- the bid objectpublic Bid getHighestBid()
public Seller getSeller()
public Item getItem()
public java.util.Date getDeadline()
public double getPrice()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |