Merge conflicts solutioned
[RRRRHHHH_Code] / ruralHouses / src / common / HouseInterface.java
1 package common;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.util.Vector;
6
7 import domain.Owner;
8 import domain.RuralHouse;
9
10 public interface HouseInterface extends Remote {
11
12         // For future implementation
13         // public void modifyHouse(int houseName, Owner owner,
14         // String description, String town, int nRooms, int nKitchens,
15         // int nBaths, int nLivings, int nParkings);
16
17         public void removeHouse(RuralHouse rh, Owner owner)throws RemoteException;
18
19         public Vector<RuralHouse> getHouses(String name,String town,int nBed , int nKit, int nBath, int nPark, int nLiv) throws RemoteException;
20
21         /**
22          * This method retrieves the existing  rural houses 
23          * 
24          * @return a Set of rural houses
25          */
26         public Vector<RuralHouse> getAllRuralHouses()throws RemoteException,
27         Exception, RemoteException;
28
29         public boolean registerNewHouse(RuralHouse rh)throws RemoteException;
30         
31 }