/**
 * An ecapsulation of an item to be sold in an auction
 *
 * @author  STUB
 * @version 1.0
 *
 * This work complies with the JMU Honor Code
 */
public class Lot
{
    private boolean            closed;
    private double             bid, reserve;
    private int                bidder;
    private String             number;
    private String[]           description;


    /**
     * Explicit Value Constructor
     *
     * @param number   The number of this lot (which may contain letters)
     * @param text     The multi-line description
     */
    public Lot(String number, String[] text)
    {
    }


    /**
     * Explicit Value Constructor
     *
     * @param number   The number of this lot (which may contain letters)
     * @param text     The multi-line description
     * @param reserve  The reserve price
     */
    public Lot(String number, String[] text, double reserve)
    {
    }


    /**
     * Close the bidding on this Lot
     */
    public void close()
    {
    }
    

    /**
     * Get the highest bid (thus far) on this Lot
     *
     * @return   The bid
     */
    public double getBid()
    {
       return 0.0;
    }



    /**
     * Get the Lot number
     *
     * @return   The Lot number
     */
    public String getNumber()
    {
       return "100";
    }


    /**
     * Increase the bid on this Lot if appropriate (and record
     * the high bidder)
     *
     * Note:  The highest bid is not changed if this
     *        bid is not higher than the current high bid.
     *        It is also not changed if this Lot is closed.
     */
    public void increaseBidTo(double amount, int bidder)
    {
    }



    /**
     * Returns true if the bidding on this Lot is closed
     * and false otherwise
     *
     * @return  The status of this Lot
     */
    public boolean isClosed()
    {


       return false;
    }



    /**
     * Returns a String representation of this Lot
     *
     * @return  The String representation
     */
    public String toString()
    {
       return "I'm just a stub";       
    }
    



    /**
     * Returns true if this Lot was sold (i.e., it is closed
     * and the high bid was at least the reserve price)
     *
     * @return  true if this Lot was sold; false otherwise
     */
    public boolean wasSold()
    {
       return true;
    }


}
