Villatripas de arriba districs added and the option of searching houses with diferent...
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / HouseManagerInterface.java
index ca99f40..321b82e 100644 (file)
@@ -12,17 +12,33 @@ public interface HouseManagerInterface {
 
 
 
-       public boolean registerNewHouse(int houseNumber, Owner owner,
+       public boolean registerNewHouse(String houseName, Owner owner,
                        String description, String town, int nRooms, int nKitchens,
                        int nBaths, int nLivings, int nParkings);
 
        // For future implementation
-       // public void modifyHouse(int houseNumber, Owner owner,
+       // public void modifyHouse(int houseName, Owner owner,
        // String description, String town, int nRooms, int nKitchens,
        // int nBaths, int nLivings, int nParkings);
 
-       public void removeHouse(int houseNumber);
-
-
-       public Vector<RuralHouse> getHousesByTown(String town);
+       public void removeHouse(RuralHouse rh, Owner owner);
+
+       public Vector<RuralHouse> getHouses(String town,int nBed , int nKit, int nBath, int nPark, int nLiv) ;
+
+       /**
+        * @param district
+        * @return
+        */
+       public Vector<RuralHouse> getHousesByDistrict(String district);
+       
+       
+       public RuralHouse getHouseByName(String Name);
+       /**
+        * This method retrieves the existing  rural houses 
+        * 
+        * @return a Set of rural houses
+        */
+       public Vector<RuralHouse> getAllRuralHouses()throws RemoteException,
+       Exception;
+       
 }