The code for different owner operations mostly implemented
[RRRRHHHH_Code] / ruralHouses / src / domain / RuralHouse.java
index 13a751d..d499c88 100644 (file)
@@ -13,17 +13,30 @@ public class RuralHouse implements Serializable {
        private String description;
        private Owner owner;
        private String town; 
+       private HouseFeatures features;
        public Vector<Offer> offers;
        
        public RuralHouse() {
                super();
        }
 
-       public RuralHouse(int houseNumber, Owner owner, String description, String town) {
+       public RuralHouse(int houseNumber, Owner owner, String description, String town , int nRooms,int nKitchens,int nBaths, 
+                       int nLivings,int nParkings) {
                this.houseNumber = houseNumber;
                this.description = description;
                this.owner = owner;
                this.town = town;
+               this.features = new HouseFeatures(nRooms,nKitchens,nBaths,nLivings,nParkings);
+               offers=new Vector<Offer>();
+       }
+       
+       public RuralHouse(int houseNumber, Owner owner, String town , int nRooms,int nKitchens,int nBaths, 
+                       int nLivings,int nParkings) {
+               this.houseNumber = houseNumber;
+               this.description = null;
+               this.owner = owner;
+               this.town = town;
+               this.features = new HouseFeatures(nRooms,nKitchens,nBaths,nLivings,nParkings);
                offers=new Vector<Offer>();
        }
 
@@ -140,5 +153,7 @@ public class RuralHouse implements Serializable {
                }
                return null;            
        }
+       
+       
 
 }