Merge branch 'master' of https://xp-dev.com/git/RRRRHHHH_Code
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / HouseManagerInterface.java
1 package businessLogic;
2
3 import java.rmi.RemoteException;
4 import java.util.Date;
5 import java.util.Vector;
6
7 import domain.Offer;
8 import domain.Owner;
9 import domain.RuralHouse;
10
11 public interface HouseManagerInterface {
12
13
14
15         public boolean registerNewHouse(String houseName, Owner owner,
16                         String description, String town, int nRooms, int nKitchens,
17                         int nBaths, int nLivings, int nParkings);
18
19         // For future implementation
20         // public void modifyHouse(int houseName, Owner owner,
21         // String description, String town, int nRooms, int nKitchens,
22         // int nBaths, int nLivings, int nParkings);
23
24         public void removeHouse(RuralHouse rh);
25
26
27         /**
28          * @param district
29          * @return
30          */
31         public Vector<RuralHouse> getHousesByDistrict(String district);
32         
33         
34         public RuralHouse getHouseByName(String Name);
35         /**
36          * This method retrieves the existing  rural houses 
37          * 
38          * @return a Set of rural houses
39          */
40         public Vector<RuralHouse> getAllRuralHouses()throws RemoteException,
41         Exception;
42         
43 }