package uk.ac.leeds.ccg.andyt.projects.genesis.society.environment; public class Location { public double _X; public double _Y; public double _Distance; public long _Row; public long _Col; public Location(){} public Location( double _X, double _Y, double _Distance ) { this._X = _X; this._Y = _Y; this._Distance = _Distance; } public Location( long _Row, long _Col){ this._Row = _Row; this._Col = _Col; } @Override public boolean equals(Object _Object) { if (_Object instanceof Location) { Location _Location_Object = (Location) _Object; return //_Location_Object._X == this._X && //_Location_Object._Y == this._Y && //_Location_Object._Distance == this._Distance && _Location_Object._Col == this._Col && _Location_Object._Row == this._Row; } return false; } @Override public int hashCode() { int hash = 3; hash = 97 * hash + (int) (Double.doubleToLongBits(this._X) ^ (Double.doubleToLongBits(this._X) >>> 32)); hash = 97 * hash + (int) (Double.doubleToLongBits(this._Y) ^ (Double.doubleToLongBits(this._Y) >>> 32)); hash = 97 * hash + (int) (Double.doubleToLongBits(this._Distance) ^ (Double.doubleToLongBits(this._Distance) >>> 32)); hash = 97 * hash + (int) (this._Row ^ (this._Row >>> 32)); hash = 97 * hash + (int) (this._Col ^ (this._Col >>> 32)); return hash; } }