Home | Trees | Indices | Help |
|
---|
|
object --+ | Auction
The base class Auction
represents auctions in an
electronic auction house. Each auction object represents an auction for a
single item that has been put up for sale. Each auction has a
description, a starting price and a minimum price. An auction may be open
or closed. A closed auction can have a buyer or it may have expired.
These features are common to all kinds of auctions. However, the
specifics of how an auction's price changes as the auction proceeds, and
various other implementation details will vary for different kinds of
auctions (i.e., different implementations of this interface).
Every day, the method advance_one_day
must be called to
update an auction status. Different kinds of auctions will have different
kinds of daily status changes. The way items are bought is also defined
differently for each different kind of auction.
All prices and bid amounts are integers. Buyers are represented simply by their names (strings).
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Returns a description of the auction and the item being sold.
|
Returns the starting price of the auction.
|
Returns a number indicating the relative "cheapness" of the item. This is obtained by dividing the current price of the item by the minimum price.
|
Determines if the auction matches a given search keyword, i.e., if the auction description contains the given keyword. Upper and lowercase letters are considered equal for the purposes of this matching operation. For instance, if the auction description is "Big golden Rolex", then the keywords "rolex", "Rolex", "GOLD", "olde" and "en r" match the auction.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Sep 13 11:53:51 2011 | http://epydoc.sourceforge.net |