package astaRMI; import java.rmi.Remote; import java.rmi.RemoteException; public interface InterfacciaBattitore extends Remote { /** * used to make an offer. * @param name the name of who makes the offer * @param howMuch the amount of the offer * @return the current amount offered, 0 if the offer made is the currently accepted one * @throws RemoteException */ public int offer(String name, int howMuch) throws RemoteException; /** * this is used to register the callback; * @param name the name of who makes the offer * @param cif */ public void register(String name, ClientInterface cif) throws RemoteException; }