@SuppressWarnings("unchecked")
	public void poppulateCriteria(HashMap<String, Object> criteria){
		
		if(criteria.containsKey("endDate")){
			this.endDate = new LocalDate((String) criteria.get("endDate"));
		}
		if(criteria.containsKey("startDate")){
			this.strtDate = new LocalDate((String) criteria.get("startDate"));
		}
		if(criteria.containsKey("minAvgRating")){
			this.minAvgRating = Integer.parseInt((String) criteria.get("minAvgRating"));
		}
		if(criteria.containsKey("facility")){
			this.facility = new Facility();
			this.facility.addFacility((HashMap<String, String>)criteria.get("facility"));
		}
		if(criteria.containsKey("location")){
			this.loc = new Location();
			this.loc.addLocation((HashMap<String, Object>)criteria.get("location"));
		}
		if(criteria.containsKey("features")){
			ArrayList<Object> ft = (ArrayList<Object>)criteria.get("features");
			for(int i = 0; i<ft.size();i++){
				Features ftObject = new Features((String)ft.get(i));
				this.features.add(ftObject);
			}
		}
	}