6e3b9b3b1ebb4d4baf83fc44110873a1f742eb4d
[RRRRHHHH_Code] / ruralHouses client / src / common / OfferInterface.java
1 package common;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.sql.Date;
6
7 import domain.Offer;
8 import domain.RuralHouse;
9 import exceptions.BadDates;
10 import exceptions.OverlappingOfferExists;
11
12 public interface OfferInterface extends Remote {
13
14         /**
15          * This method creates an offer with a house number, first day, last day and
16          * price
17          * 
18          * @param House
19          *            number, start day, last day and price
20          * @return the created offer, or null, or an exception
21          */
22         public Offer createOffer(RuralHouse ruralHouse, Date firstDay,
23                         Date lastDay, float price) throws OverlappingOfferExists, BadDates,
24                         RemoteException, Exception;
25
26         public void deleteOffer(RuralHouse rh, Offer o) throws RemoteException,
27                         Exception;
28
29 }