implemented lacking GUIs and corrected errors
[RRRRHHHH_Code] / ruralHouses / src / domain / RuralHouse.java
index 13a751d..7087a66 100644 (file)
@@ -13,19 +13,23 @@ 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 ,HouseFeatures features) {
                this.houseNumber = houseNumber;
                this.description = description;
                this.owner = owner;
                this.town = town;
+               this.features = features;
                offers=new Vector<Offer>();
        }
+       
+       
 
        public int getHouseNumber() {
                return houseNumber;
@@ -58,7 +62,13 @@ public class RuralHouse implements Serializable {
        public void setTown(String town) {
                this.town=town;
        }
-       
+       public HouseFeatures getFeatures() {
+               return features;
+       }
+
+       public void setFeatures(HouseFeatures features) {
+               this.features = features;
+       }       
        public String toString() {
                return this.houseNumber + ": " + this.town;
        }
@@ -123,6 +133,7 @@ public class RuralHouse implements Serializable {
                return availableOffers;
        }
        
+       
        /**
         * This method obtains the offer that match exactly with a given dates that has not been booked
         * 
@@ -140,5 +151,7 @@ public class RuralHouse implements Serializable {
                }
                return null;            
        }
+       
+       
 
 }