Some minor changes and the logic for searching rural houses by the name of the town...
[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(int houseNumber, 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 houseNumber, Owner owner,
21         // String description, String town, int nRooms, int nKitchens,
22         // int nBaths, int nLivings, int nParkings);
23
24         public void removeHouse(int houseNumber);
25
26
27         public Vector<RuralHouse> getHousesByTown(String town);
28 }