// Path: src/edu/boun/edgecloudsim/utils/Location.java
// public class Location {
// 	private int xPos;
// 	private int yPos;
// 	private int servingWlanId;
// 	private int placeTypeIndex;
// 	public Location(int _placeTypeIndex, int _servingWlanId, int _xPos, int _yPos){
// 		servingWlanId = _servingWlanId;
// 		placeTypeIndex=_placeTypeIndex;
// 		xPos = _xPos;
// 		yPos = _yPos;
// 	}
// 	
// 	/*
// 	 * Default Constructor: Creates an empty Location
// 	 */
// 	public Location() {
// 	}
// 	
// 	@Override
// 	public boolean equals(Object other){
// 		boolean result = false;
// 	    if (other == null) return false;
// 	    if (!(other instanceof Location))return false;
// 	    if (other == this) return true;
// 	    
// 	    Location otherLocation = (Location)other;
// 	    if(this.xPos == otherLocation.xPos && this.yPos == otherLocation.yPos)
// 	    	result = true;
// 
// 	    return result;
// 	}
// 
// 	public int getServingWlanId(){
// 		return servingWlanId;
// 	}
// 	
// 	public int getPlaceTypeIndex(){
// 		return placeTypeIndex;
// 	}
// 	
// 	public int getXPos(){
// 		return xPos;
// 	}
// 	
// 	public int getYPos(){
// 		return yPos;
// 	}
// }


import java.util.List;
import org.cloudbus.cloudsim.Host;
import org.cloudbus.cloudsim.Pe;
import org.cloudbus.cloudsim.VmScheduler;
import org.cloudbus.cloudsim.provisioners.BwProvisioner;
import org.cloudbus.cloudsim.provisioners.RamProvisioner;
import edu.boun.edgecloudsim.utils.Location;

/*
 * Title:        EdgeCloudSim - EdgeHost
 * 
 * Description: 
 * EdgeHost adds location information over CloudSim's Host class
 *               
 * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
 * Copyright (c) 2017, Bogazici University, Istanbul, Turkey
 */

package edu.boun.edgecloudsim.edge_server;




public class EdgeHost extends Host {
	private Location location;
	
	public EdgeHost(int id, RamProvisioner ramProvisioner,

// Path: src/edu/boun/edgecloudsim/utils/Location.java
// public class Location {
// 	private int xPos;
// 	private int yPos;
// 	private int servingWlanId;
// 	private int placeTypeIndex;
// 	public Location(int _placeTypeIndex, int _servingWlanId, int _xPos, int _yPos){
// 		servingWlanId = _servingWlanId;
// 		placeTypeIndex=_placeTypeIndex;
// 		xPos = _xPos;
// 		yPos = _yPos;
// 	}
// 	
// 	/*
// 	 * Default Constructor: Creates an empty Location
// 	 */
// 	public Location() {
// 	}
// 	
// 	@Override
// 	public boolean equals(Object other){
// 		boolean result = false;
// 	    if (other == null) return false;
// 	    if (!(other instanceof Location))return false;
// 	    if (other == this) return true;
// 	    
// 	    Location otherLocation = (Location)other;
// 	    if(this.xPos == otherLocation.xPos && this.yPos == otherLocation.yPos)
// 	    	result = true;
// 
// 	    return result;
// 	}
// 
// 	public int getServingWlanId(){
// 		return servingWlanId;
// 	}
// 	
// 	public int getPlaceTypeIndex(){
// 		return placeTypeIndex;
// 	}
// 	
// 	public int getXPos(){
// 		return xPos;
// 	}
// 	
// 	public int getYPos(){
// 		return yPos;
// 	}
// }


// Path: src/edu/boun/edgecloudsim/edge_server/EdgeHost.java
import java.util.List;
import org.cloudbus.cloudsim.Host;
import org.cloudbus.cloudsim.Pe;
import org.cloudbus.cloudsim.VmScheduler;
import org.cloudbus.cloudsim.provisioners.BwProvisioner;
import org.cloudbus.cloudsim.provisioners.RamProvisioner;
import edu.boun.edgecloudsim.utils.Location;

/*
 * Title:        EdgeCloudSim - EdgeHost
 * 
 * Description: 
 * EdgeHost adds location information over CloudSim's Host class
 *               
 * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
 * Copyright (c) 2017, Bogazici University, Istanbul, Turkey
 */

package edu.boun.edgecloudsim.edge_server;




public class EdgeHost extends Host {
	private Location location;
	
	public EdgeHost(int id, RamProvisioner ramProvisioner,

			BwProvisioner bwProvisioner, long storage,
