lpr-b:interfacciabattitoreasta
no way to compare when less than two revisions
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| — | lpr-b:interfacciabattitoreasta [07/12/2007 alle 09:56 (18 anni fa)] (versione attuale) – creata Marco Danelutto | ||
|---|---|---|---|
| Linea 1: | Linea 1: | ||
| + | <code java> | ||
| + | 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; | ||
| + | |||
| + | } | ||
| + | </ | ||
lpr-b/interfacciabattitoreasta.txt · Ultima modifica: 07/12/2007 alle 09:56 (18 anni fa) da Marco Danelutto
