Beispiel #1
0
        /*
         * (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));
        }
Beispiel #2
0
 public AggregateLocation(AbsoluteLocation absoluteLocation)
 {
     this.absoluteLocation = absoluteLocation;
 }
Beispiel #3
0
 public AggregateLocation(AbsoluteLocation absoluteLocation, SymbolicLocation symbolicLocation)
 {
     this.absoluteLocation = absoluteLocation;
     this.symbolicLocation = symbolicLocation;
 }
Beispiel #4
0
 public void setAbsoluteLocation(AbsoluteLocation location)
 {
     this.absoluteLocation = location;
 }