/**
         * Compares for reference equality and value equality.
         */
        public bool equals(IffAtcNavAidsLayer1Pdu rhs)
        {
            bool ivarsEqual = true;

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

            ivarsEqual = base.Equals(rhs);

            if (!(_emittingEntityId.Equals(rhs._emittingEntityId)))
            {
                ivarsEqual = false;
            }
            if (!(_eventID.Equals(rhs._eventID)))
            {
                ivarsEqual = false;
            }
            if (!(_location.Equals(rhs._location)))
            {
                ivarsEqual = false;
            }
            if (!(_systemID.Equals(rhs._systemID)))
            {
                ivarsEqual = false;
            }
            if (!(_pad2 == rhs._pad2))
            {
                ivarsEqual = false;
            }
            if (!(_fundamentalParameters.Equals(rhs._fundamentalParameters)))
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
Ejemplo n.º 2
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(UaPdu rhs)
        {
            bool ivarsEqual = true;

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

            ivarsEqual = base.Equals(rhs);

            if (!(_emittingEntityID.Equals(rhs._emittingEntityID)))
            {
                ivarsEqual = false;
            }
            if (!(_eventID.Equals(rhs._eventID)))
            {
                ivarsEqual = false;
            }
            if (!(_stateChangeIndicator == rhs._stateChangeIndicator))
            {
                ivarsEqual = false;
            }
            if (!(_pad == rhs._pad))
            {
                ivarsEqual = false;
            }
            if (!(_passiveParameterIndex == rhs._passiveParameterIndex))
            {
                ivarsEqual = false;
            }
            if (!(_propulsionPlantConfiguration == rhs._propulsionPlantConfiguration))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfShafts == rhs._numberOfShafts))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfAPAs == rhs._numberOfAPAs))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfUAEmitterSystems == rhs._numberOfUAEmitterSystems))
            {
                ivarsEqual = false;
            }

            if (!(_shaftRPMs.Count == rhs._shaftRPMs.Count))
            {
                ivarsEqual = false;
            }
            if (ivarsEqual)
            {
                for (int idx = 0; idx < _shaftRPMs.Count; idx++)
                {
                    if (!(_shaftRPMs[idx].Equals(rhs._shaftRPMs[idx])))
                    {
                        ivarsEqual = false;
                    }
                }
            }


            if (!(_apaData.Count == rhs._apaData.Count))
            {
                ivarsEqual = false;
            }
            if (ivarsEqual)
            {
                for (int idx = 0; idx < _apaData.Count; idx++)
                {
                    if (!(_apaData[idx].Equals(rhs._apaData[idx])))
                    {
                        ivarsEqual = false;
                    }
                }
            }


            if (!(_emitterSystems.Count == rhs._emitterSystems.Count))
            {
                ivarsEqual = false;
            }
            if (ivarsEqual)
            {
                for (int idx = 0; idx < _emitterSystems.Count; idx++)
                {
                    if (!(_emitterSystems[idx].Equals(rhs._emitterSystems[idx])))
                    {
                        ivarsEqual = false;
                    }
                }
            }


            return(ivarsEqual);
        }
Ejemplo n.º 3
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(CollisionElasticPdu rhs)
        {
            bool ivarsEqual = true;

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

            ivarsEqual = base.Equals(rhs);

            if (!(_issuingEntityID.Equals(rhs._issuingEntityID)))
            {
                ivarsEqual = false;
            }
            if (!(_collidingEntityID.Equals(rhs._collidingEntityID)))
            {
                ivarsEqual = false;
            }
            if (!(_collisionEventID.Equals(rhs._collisionEventID)))
            {
                ivarsEqual = false;
            }
            if (!(_pad == rhs._pad))
            {
                ivarsEqual = false;
            }
            if (!(_contactVelocity.Equals(rhs._contactVelocity)))
            {
                ivarsEqual = false;
            }
            if (!(_mass == rhs._mass))
            {
                ivarsEqual = false;
            }
            if (!(_location.Equals(rhs._location)))
            {
                ivarsEqual = false;
            }
            if (!(_collisionResultXX == rhs._collisionResultXX))
            {
                ivarsEqual = false;
            }
            if (!(_collisionResultXY == rhs._collisionResultXY))
            {
                ivarsEqual = false;
            }
            if (!(_collisionResultXZ == rhs._collisionResultXZ))
            {
                ivarsEqual = false;
            }
            if (!(_collisionResultYY == rhs._collisionResultYY))
            {
                ivarsEqual = false;
            }
            if (!(_collisionResultYZ == rhs._collisionResultYZ))
            {
                ivarsEqual = false;
            }
            if (!(_collisionResultZZ == rhs._collisionResultZZ))
            {
                ivarsEqual = false;
            }
            if (!(_unitSurfaceNormal.Equals(rhs._unitSurfaceNormal)))
            {
                ivarsEqual = false;
            }
            if (!(_coefficientOfRestitution == rhs._coefficientOfRestitution))
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
Ejemplo n.º 4
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(DetonationPdu rhs)
        {
            bool ivarsEqual = true;

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

            ivarsEqual = base.Equals(rhs);

            if (!(_munitionID.Equals(rhs._munitionID)))
            {
                ivarsEqual = false;
            }
            if (!(_eventID.Equals(rhs._eventID)))
            {
                ivarsEqual = false;
            }
            if (!(_velocity.Equals(rhs._velocity)))
            {
                ivarsEqual = false;
            }
            if (!(_locationInWorldCoordinates.Equals(rhs._locationInWorldCoordinates)))
            {
                ivarsEqual = false;
            }
            if (!(_burstDescriptor.Equals(rhs._burstDescriptor)))
            {
                ivarsEqual = false;
            }
            if (!(_locationInEntityCoordinates.Equals(rhs._locationInEntityCoordinates)))
            {
                ivarsEqual = false;
            }
            if (!(_detonationResult == rhs._detonationResult))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfArticulationParameters == rhs._numberOfArticulationParameters))
            {
                ivarsEqual = false;
            }
            if (!(_pad == rhs._pad))
            {
                ivarsEqual = false;
            }

            if (!(_articulationParameters.Count == rhs._articulationParameters.Count))
            {
                ivarsEqual = false;
            }
            if (ivarsEqual)
            {
                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    if (!(_articulationParameters[idx].Equals(rhs._articulationParameters[idx])))
                    {
                        ivarsEqual = false;
                    }
                }
            }


            return(ivarsEqual);
        }