/* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) * We compare AggregateLocations by their absoluteLocation * which is the only required location */ /// <summary> /// We compare AggregateLocations by their absoluteLocation which is the only required location /// </summary> /// <param name="other"></param> /// <returns></returns> public override bool Equals(Object other) { if (other == null) { return(false); } if (!(other is AggregateLocation)) { return(false); } AbsoluteLocation otherAbsLocation = ((AggregateLocation)other).getAbsoluteLocation(); AbsoluteLocation thisAbsLocation = this.getAbsoluteLocation(); return(thisAbsLocation.Equals(otherAbsLocation)); }
public AggregateLocation(AbsoluteLocation absoluteLocation) { this.absoluteLocation = absoluteLocation; }
public AggregateLocation(AbsoluteLocation absoluteLocation, SymbolicLocation symbolicLocation) { this.absoluteLocation = absoluteLocation; this.symbolicLocation = symbolicLocation; }
public void setAbsoluteLocation(AbsoluteLocation location) { this.absoluteLocation = location; }