package agent;

public class Neighborhood {

	public enum Direction {
		TOP, BOTTOM, LEFT, RIGHT
	}

	public int getTemperature() {
		// TODO Auto-generated method stub
		return 0;
	}

}

package agent;

public class Neighborhood {

	public enum Direction {
		TOP, TOPRIGHT, RIGHT, BOTTOMRIGHT, BOTTOM, BOTTOMLEFT, LEFT, TOPLEFT
	}

	public int getTemperature() {
		// TODO Auto-generated method stub
		return 0;
	}

}

Define 8 surroundings