Esempio n. 1
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(AcousticBeamFundamentalParameter rhs)
        {
            bool ivarsEqual = true;

            if (rhs.GetType() != this.GetType())
            {
                return(false);
            }


            if (!(_activeEmissionParameterIndex == rhs._activeEmissionParameterIndex))
            {
                ivarsEqual = false;
            }
            if (!(_scanPattern == rhs._scanPattern))
            {
                ivarsEqual = false;
            }
            if (!(_beamCenterAzimuth == rhs._beamCenterAzimuth))
            {
                ivarsEqual = false;
            }
            if (!(_azimuthalBeamwidth == rhs._azimuthalBeamwidth))
            {
                ivarsEqual = false;
            }
            if (!(_beamCenterDE == rhs._beamCenterDE))
            {
                ivarsEqual = false;
            }
            if (!(_deBeamwidth == rhs._deBeamwidth))
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
Esempio n. 2
0
 ///<summary>
 ///fundamental data parameters
 ///</summary>
 public void setFundamentalDataParameters(AcousticBeamFundamentalParameter pFundamentalDataParameters)
 {
     _fundamentalDataParameters = pFundamentalDataParameters;
 }
 ///<summary>
 ///fundamental data parameters
 ///</summary>
 public void setFundamentalDataParameters(AcousticBeamFundamentalParameter pFundamentalDataParameters)
 {
     _fundamentalDataParameters = pFundamentalDataParameters;
 }
        /**
          * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
          */
        public bool equals(AcousticBeamFundamentalParameter rhs)
        {
            bool ivarsEqual = true;

            if(rhs.GetType() != this.GetType())
            return false;

             if( ! (_activeEmissionParameterIndex == rhs._activeEmissionParameterIndex)) ivarsEqual = false;
             if( ! (_scanPattern == rhs._scanPattern)) ivarsEqual = false;
             if( ! (_beamCenterAzimuth == rhs._beamCenterAzimuth)) ivarsEqual = false;
             if( ! (_azimuthalBeamwidth == rhs._azimuthalBeamwidth)) ivarsEqual = false;
             if( ! (_beamCenterDE == rhs._beamCenterDE)) ivarsEqual = false;
             if( ! (_deBeamwidth == rhs._deBeamwidth)) ivarsEqual = false;

            return ivarsEqual;
        }