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
and a starting 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).
|
|||
string |
|
||
int |
|
||
boolean |
|
||
Inherited from |
|
|||
Inherited from |
|
Returns a description of the auction and the item being sold.
|
Returns the starting price of the auction.
|
Determines if the auction matches a given search keyword, i.e., if the auction description contains the given keyword. Upper and lower case 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 Thu Aug 30 11:00:39 2012 | http://epydoc.sourceforge.net |