Example #1
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _entityID.GetHashCode();
            result = GenerateHash(result) ^ _forceId.GetHashCode();
            result = GenerateHash(result) ^ _numberOfArticulationParameters.GetHashCode();
            result = GenerateHash(result) ^ _entityType.GetHashCode();
            result = GenerateHash(result) ^ _alternativeEntityType.GetHashCode();
            result = GenerateHash(result) ^ _entityLinearVelocity.GetHashCode();
            result = GenerateHash(result) ^ _entityLocation.GetHashCode();
            result = GenerateHash(result) ^ _entityOrientation.GetHashCode();
            result = GenerateHash(result) ^ _entityAppearance.GetHashCode();
            result = GenerateHash(result) ^ _deadReckoningParameters.GetHashCode();
            result = GenerateHash(result) ^ _marking.GetHashCode();
            result = GenerateHash(result) ^ _capabilities.GetHashCode();

            if (_articulationParameters.Count > 0)
            {
                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    result = GenerateHash(result) ^ _articulationParameters[idx].GetHashCode();
                }
            }


            return(result);
        }
Example #2
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _environmentalSimulationApplicationID.GetHashCode();
            result = GenerateHash(result) ^ _fieldNumber.GetHashCode();
            result = GenerateHash(result) ^ _pduNumber.GetHashCode();
            result = GenerateHash(result) ^ _pduTotal.GetHashCode();
            result = GenerateHash(result) ^ _coordinateSystem.GetHashCode();
            result = GenerateHash(result) ^ _numberOfGridAxes.GetHashCode();
            result = GenerateHash(result) ^ _constantGrid.GetHashCode();
            result = GenerateHash(result) ^ _environmentType.GetHashCode();
            result = GenerateHash(result) ^ _orientation.GetHashCode();
            result = GenerateHash(result) ^ _sampleTime.GetHashCode();
            result = GenerateHash(result) ^ _totalValues.GetHashCode();
            result = GenerateHash(result) ^ _vectorDimension.GetHashCode();
            result = GenerateHash(result) ^ _padding1.GetHashCode();
            result = GenerateHash(result) ^ _padding2.GetHashCode();

            if (_gridDataList.Count > 0)
            {
                for (int idx = 0; idx < _gridDataList.Count; idx++)
                {
                    result = GenerateHash(result) ^ _gridDataList[idx].GetHashCode();
                }
            }


            return(result);
        }
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _entityID.GetHashCode();
            result = GenerateHash(result) ^ _padding1.GetHashCode();
            result = GenerateHash(result) ^ _numberOfArticulationParameters.GetHashCode();
            result = GenerateHash(result) ^ _entityLinearVelocity.GetHashCode();
            result = GenerateHash(result) ^ _entityLocation.GetHashCode();
            result = GenerateHash(result) ^ _entityOrientation.GetHashCode();
            result = GenerateHash(result) ^ _entityAppearance.GetHashCode();

            if (_articulationParameters.Count > 0)
            {
                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    result = GenerateHash(result) ^ _articulationParameters[idx].GetHashCode();
                }
            }


            return(result);
        }
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ _beamDirection.GetHashCode();
            result = GenerateHash(result) ^ _azimuthBeamwidth.GetHashCode();
            result = GenerateHash(result) ^ _referenceSystem.GetHashCode();
            result = GenerateHash(result) ^ _padding1.GetHashCode();
            result = GenerateHash(result) ^ _padding2.GetHashCode();
            result = GenerateHash(result) ^ _ez.GetHashCode();
            result = GenerateHash(result) ^ _ex.GetHashCode();
            result = GenerateHash(result) ^ _phase.GetHashCode();

            return(result);
        }
Example #5
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ _segmentNumber.GetHashCode();
            result = GenerateHash(result) ^ _segmentAppearance.GetHashCode();
            result = GenerateHash(result) ^ _location.GetHashCode();
            result = GenerateHash(result) ^ _orientation.GetHashCode();
            result = GenerateHash(result) ^ _segmentLength.GetHashCode();
            result = GenerateHash(result) ^ _segmentWidth.GetHashCode();
            result = GenerateHash(result) ^ _segmentHeight.GetHashCode();
            result = GenerateHash(result) ^ _segmentDepth.GetHashCode();
            result = GenerateHash(result) ^ _pad1.GetHashCode();

            return(result);
        }
Example #6
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _objectID.GetHashCode();
            result = GenerateHash(result) ^ _referencedObjectID.GetHashCode();
            result = GenerateHash(result) ^ _updateNumber.GetHashCode();
            result = GenerateHash(result) ^ _forceID.GetHashCode();
            result = GenerateHash(result) ^ _modifications.GetHashCode();
            result = GenerateHash(result) ^ _objectType.GetHashCode();
            result = GenerateHash(result) ^ _objectLocation.GetHashCode();
            result = GenerateHash(result) ^ _objectOrientation.GetHashCode();
            result = GenerateHash(result) ^ _objectAppearance.GetHashCode();
            result = GenerateHash(result) ^ _requesterID.GetHashCode();
            result = GenerateHash(result) ^ _receivingID.GetHashCode();
            result = GenerateHash(result) ^ _pad2.GetHashCode();

            return(result);
        }
Example #7
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _minefieldID.GetHashCode();
            result = GenerateHash(result) ^ _minefieldSequence.GetHashCode();
            result = GenerateHash(result) ^ _forceID.GetHashCode();
            result = GenerateHash(result) ^ _numberOfPerimeterPoints.GetHashCode();
            result = GenerateHash(result) ^ _minefieldType.GetHashCode();
            result = GenerateHash(result) ^ _numberOfMineTypes.GetHashCode();
            result = GenerateHash(result) ^ _minefieldLocation.GetHashCode();
            result = GenerateHash(result) ^ _minefieldOrientation.GetHashCode();
            result = GenerateHash(result) ^ _appearance.GetHashCode();
            result = GenerateHash(result) ^ _protocolMode.GetHashCode();

            if (_perimeterPoints.Count > 0)
            {
                for (int idx = 0; idx < _perimeterPoints.Count; idx++)
                {
                    result = GenerateHash(result) ^ _perimeterPoints[idx].GetHashCode();
                }
            }


            if (_mineType.Count > 0)
            {
                for (int idx = 0; idx < _mineType.Count; idx++)
                {
                    result = GenerateHash(result) ^ _mineType[idx].GetHashCode();
                }
            }


            return(result);
        }
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _aggregateID.GetHashCode();
            result = GenerateHash(result) ^ _forceID.GetHashCode();
            result = GenerateHash(result) ^ _aggregateState.GetHashCode();
            result = GenerateHash(result) ^ _aggregateType.GetHashCode();
            result = GenerateHash(result) ^ _formation.GetHashCode();
            result = GenerateHash(result) ^ _aggregateMarking.GetHashCode();
            result = GenerateHash(result) ^ _dimensions.GetHashCode();
            result = GenerateHash(result) ^ _orientation.GetHashCode();
            result = GenerateHash(result) ^ _centerOfMass.GetHashCode();
            result = GenerateHash(result) ^ _velocity.GetHashCode();
            result = GenerateHash(result) ^ _numberOfDisAggregates.GetHashCode();
            result = GenerateHash(result) ^ _numberOfDisEntities.GetHashCode();
            result = GenerateHash(result) ^ _numberOfSilentAggregateTypes.GetHashCode();
            result = GenerateHash(result) ^ _numberOfSilentEntityTypes.GetHashCode();

            if (_aggregateIDList.Count > 0)
            {
                for (int idx = 0; idx < _aggregateIDList.Count; idx++)
                {
                    result = GenerateHash(result) ^ _aggregateIDList[idx].GetHashCode();
                }
            }


            if (_entityIDList.Count > 0)
            {
                for (int idx = 0; idx < _entityIDList.Count; idx++)
                {
                    result = GenerateHash(result) ^ _entityIDList[idx].GetHashCode();
                }
            }

            result = GenerateHash(result) ^ _pad2.GetHashCode();

            if (_silentAggregateSystemList.Count > 0)
            {
                for (int idx = 0; idx < _silentAggregateSystemList.Count; idx++)
                {
                    result = GenerateHash(result) ^ _silentAggregateSystemList[idx].GetHashCode();
                }
            }


            if (_silentEntitySystemList.Count > 0)
            {
                for (int idx = 0; idx < _silentEntitySystemList.Count; idx++)
                {
                    result = GenerateHash(result) ^ _silentEntitySystemList[idx].GetHashCode();
                }
            }

            result = GenerateHash(result) ^ _numberOfVariableDatumRecords.GetHashCode();

            if (_variableDatumList.Count > 0)
            {
                for (int idx = 0; idx < _variableDatumList.Count; idx++)
                {
                    result = GenerateHash(result) ^ _variableDatumList[idx].GetHashCode();
                }
            }


            return(result);
        }