package iis;


import java.rmi.Remote;
import java.rmi.RemoteException;


/*
 * This interface defines the functionality of the vendor server. The method
 * abstracts have to be implemented in your server code.
 */
public interface BiddingIF extends Remote
{
	/**
	 * This method is called by the buyer if she/he wants to register a bid
	 * with a server. The ticket number has to be requested at the trusted
	 * agent beforehand and passed to the vendor in order for the vendor
	 * to be able to register the bid.
	 *
	 * @param buyer		The customer's team number
	 * @param item		A string representing the item ID
	 * @param bid		The price the buyer is willing to pay for the item
	 * @param ticket	The ticket received from the trusted agent
	 *
	 * @returns			Method returns true if the bid was successfully
	 *					accepted by the vendor.
	 */
	public boolean placeBid(int buyer, String item, float bid, int ticket) throws RemoteException;
}

