3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
6 import java.util.Vector;
9 import domain.RuralHouse;
10 import exceptions.BadDates;
11 import exceptions.OverlappingOfferExists;
13 public interface OfferInterface extends Remote {
16 * This method creates an offer with a house number, first day, last day and
20 * number, start day, last day and price
21 * @return the created offer, or null, or an exception
23 public Offer createOffer(RuralHouse ruralHouse, Date firstDay,
24 Date lastDay, float price) throws OverlappingOfferExists, BadDates,
25 RemoteException, Exception;
27 public void deleteOffer(RuralHouse rh, Offer o) throws RemoteException,
30 public Vector<RuralHouse> getRuralHouseOffers(RuralHouse rh)throws RemoteException;