Exemple #1
0
        /**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(BurstDescriptor rhs)
        {
            bool ivarsEqual = true;

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

            if (!(_munition.Equals(rhs._munition)))
            {
                ivarsEqual = false;
            }
            if (!(_warhead == rhs._warhead))
            {
                ivarsEqual = false;
            }
            if (!(_fuse == rhs._fuse))
            {
                ivarsEqual = false;
            }
            if (!(_quantity == rhs._quantity))
            {
                ivarsEqual = false;
            }
            if (!(_rate == rhs._rate))
            {
                ivarsEqual = false;
            }

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

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

            ivarsEqual = base.Equals(rhs);

            if (!(_environementalProcessID.Equals(rhs._environementalProcessID)))
            {
                ivarsEqual = false;
            }
            if (!(_environmentType.Equals(rhs._environmentType)))
            {
                ivarsEqual = false;
            }
            if (!(_modelType == rhs._modelType))
            {
                ivarsEqual = false;
            }
            if (!(_environmentStatus == rhs._environmentStatus))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfEnvironmentRecords == rhs._numberOfEnvironmentRecords))
            {
                ivarsEqual = false;
            }
            if (!(_sequenceNumber == rhs._sequenceNumber))
            {
                ivarsEqual = false;
            }

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


            return(ivarsEqual);
        }
Exemple #3
0
        /**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(SupplyQuantity rhs)
        {
            bool ivarsEqual = true;

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

            if (!(_supplyType.Equals(rhs._supplyType)))
            {
                ivarsEqual = false;
            }
            if (!(_quantity == rhs._quantity))
            {
                ivarsEqual = false;
            }

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

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

            ivarsEqual = base.Equals(rhs);

            if (!(_orginatingEntityID.Equals(rhs._orginatingEntityID)))
            {
                ivarsEqual = false;
            }
            if (!(_receivingEntityID.Equals(rhs._receivingEntityID)))
            {
                ivarsEqual = false;
            }
            if (!(_relationship.Equals(rhs._relationship)))
            {
                ivarsEqual = false;
            }
            if (!(_partLocation.Equals(rhs._partLocation)))
            {
                ivarsEqual = false;
            }
            if (!(_namedLocationID.Equals(rhs._namedLocationID)))
            {
                ivarsEqual = false;
            }
            if (!(_partEntityType.Equals(rhs._partEntityType)))
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
Exemple #5
0
        /**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(MinefieldStatePdu rhs)
        {
            bool ivarsEqual = true;

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

            if (!(_minefieldID.Equals(rhs._minefieldID)))
            {
                ivarsEqual = false;
            }
            if (!(_minefieldSequence == rhs._minefieldSequence))
            {
                ivarsEqual = false;
            }
            if (!(_forceID == rhs._forceID))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfPerimeterPoints == rhs._numberOfPerimeterPoints))
            {
                ivarsEqual = false;
            }
            if (!(_minefieldType.Equals(rhs._minefieldType)))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfMineTypes == rhs._numberOfMineTypes))
            {
                ivarsEqual = false;
            }
            if (!(_minefieldLocation.Equals(rhs._minefieldLocation)))
            {
                ivarsEqual = false;
            }
            if (!(_minefieldOrientation.Equals(rhs._minefieldOrientation)))
            {
                ivarsEqual = false;
            }
            if (!(_appearance == rhs._appearance))
            {
                ivarsEqual = false;
            }
            if (!(_protocolMode == rhs._protocolMode))
            {
                ivarsEqual = false;
            }

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


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


            return(ivarsEqual);
        }
        /**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(EntityStatePdu rhs)
        {
            bool ivarsEqual = true;

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

            if (!(_entityID.Equals(rhs._entityID)))
            {
                ivarsEqual = false;
            }
            if (!(_forceId == rhs._forceId))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfArticulationParameters == rhs._numberOfArticulationParameters))
            {
                ivarsEqual = false;
            }
            if (!(_entityType.Equals(rhs._entityType)))
            {
                ivarsEqual = false;
            }
            if (!(_alternativeEntityType.Equals(rhs._alternativeEntityType)))
            {
                ivarsEqual = false;
            }
            if (!(_entityLinearVelocity.Equals(rhs._entityLinearVelocity)))
            {
                ivarsEqual = false;
            }
            if (!(_entityLocation.Equals(rhs._entityLocation)))
            {
                ivarsEqual = false;
            }
            if (!(_entityOrientation.Equals(rhs._entityOrientation)))
            {
                ivarsEqual = false;
            }
            if (!(_entityAppearance == rhs._entityAppearance))
            {
                ivarsEqual = false;
            }
            if (!(_deadReckoningParameters.Equals(rhs._deadReckoningParameters)))
            {
                ivarsEqual = false;
            }
            if (!(_marking.Equals(rhs._marking)))
            {
                ivarsEqual = false;
            }
            if (!(_capabilities == rhs._capabilities))
            {
                ivarsEqual = false;
            }

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


            return(ivarsEqual);
        }
        /**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(ArealObjectStatePdu rhs)
        {
            bool ivarsEqual = true;

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

            if (!(_objectID.Equals(rhs._objectID)))
            {
                ivarsEqual = false;
            }
            if (!(_referencedObjectID.Equals(rhs._referencedObjectID)))
            {
                ivarsEqual = false;
            }
            if (!(_updateNumber == rhs._updateNumber))
            {
                ivarsEqual = false;
            }
            if (!(_forceID == rhs._forceID))
            {
                ivarsEqual = false;
            }
            if (!(_modifications == rhs._modifications))
            {
                ivarsEqual = false;
            }
            if (!(_objectType.Equals(rhs._objectType)))
            {
                ivarsEqual = false;
            }
            if (!(_objectAppearance.Equals(rhs._objectAppearance)))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfPoints == rhs._numberOfPoints))
            {
                ivarsEqual = false;
            }
            if (!(_requesterID.Equals(rhs._requesterID)))
            {
                ivarsEqual = false;
            }
            if (!(_receivingID.Equals(rhs._receivingID)))
            {
                ivarsEqual = false;
            }

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


            return(ivarsEqual);
        }
Exemple #8
0
        /**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(AggregateStatePdu rhs)
        {
            bool ivarsEqual = true;

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

            if (!(_aggregateID.Equals(rhs._aggregateID)))
            {
                ivarsEqual = false;
            }
            if (!(_forceID == rhs._forceID))
            {
                ivarsEqual = false;
            }
            if (!(_aggregateState == rhs._aggregateState))
            {
                ivarsEqual = false;
            }
            if (!(_aggregateType.Equals(rhs._aggregateType)))
            {
                ivarsEqual = false;
            }
            if (!(_formation == rhs._formation))
            {
                ivarsEqual = false;
            }
            if (!(_aggregateMarking.Equals(rhs._aggregateMarking)))
            {
                ivarsEqual = false;
            }
            if (!(_dimensions.Equals(rhs._dimensions)))
            {
                ivarsEqual = false;
            }
            if (!(_orientation.Equals(rhs._orientation)))
            {
                ivarsEqual = false;
            }
            if (!(_centerOfMass.Equals(rhs._centerOfMass)))
            {
                ivarsEqual = false;
            }
            if (!(_velocity.Equals(rhs._velocity)))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfDisAggregates == rhs._numberOfDisAggregates))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfDisEntities == rhs._numberOfDisEntities))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfSilentAggregateTypes == rhs._numberOfSilentAggregateTypes))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfSilentEntityTypes == rhs._numberOfSilentEntityTypes))
            {
                ivarsEqual = false;
            }

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


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

            if (!(_pad2 == rhs._pad2))
            {
                ivarsEqual = false;
            }

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


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

            if (!(_numberOfVariableDatumRecords == rhs._numberOfVariableDatumRecords))
            {
                ivarsEqual = false;
            }

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


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

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

            ivarsEqual = base.Equals(rhs);

            if (!(_minefieldID.Equals(rhs._minefieldID)))
            {
                ivarsEqual = false;
            }
            if (!(_requestingEntityID.Equals(rhs._requestingEntityID)))
            {
                ivarsEqual = false;
            }
            if (!(_minefieldSequenceNumbeer == rhs._minefieldSequenceNumbeer))
            {
                ivarsEqual = false;
            }
            if (!(_requestID == rhs._requestID))
            {
                ivarsEqual = false;
            }
            if (!(_pduSequenceNumber == rhs._pduSequenceNumber))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfPdus == rhs._numberOfPdus))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfMinesInThisPdu == rhs._numberOfMinesInThisPdu))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfSensorTypes == rhs._numberOfSensorTypes))
            {
                ivarsEqual = false;
            }
            if (!(_pad2 == rhs._pad2))
            {
                ivarsEqual = false;
            }
            if (!(_dataFilter == rhs._dataFilter))
            {
                ivarsEqual = false;
            }
            if (!(_mineType.Equals(rhs._mineType)))
            {
                ivarsEqual = false;
            }

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

            if (!(_pad3 == rhs._pad3))
            {
                ivarsEqual = false;
            }

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


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

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

            ivarsEqual = base.Equals(rhs);

            if (!(_environmentalSimulationApplicationID.Equals(rhs._environmentalSimulationApplicationID)))
            {
                ivarsEqual = false;
            }
            if (!(_fieldNumber == rhs._fieldNumber))
            {
                ivarsEqual = false;
            }
            if (!(_pduNumber == rhs._pduNumber))
            {
                ivarsEqual = false;
            }
            if (!(_pduTotal == rhs._pduTotal))
            {
                ivarsEqual = false;
            }
            if (!(_coordinateSystem == rhs._coordinateSystem))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfGridAxes == rhs._numberOfGridAxes))
            {
                ivarsEqual = false;
            }
            if (!(_constantGrid == rhs._constantGrid))
            {
                ivarsEqual = false;
            }
            if (!(_environmentType.Equals(rhs._environmentType)))
            {
                ivarsEqual = false;
            }
            if (!(_orientation.Equals(rhs._orientation)))
            {
                ivarsEqual = false;
            }
            if (!(_sampleTime == rhs._sampleTime))
            {
                ivarsEqual = false;
            }
            if (!(_totalValues == rhs._totalValues))
            {
                ivarsEqual = false;
            }
            if (!(_vectorDimension == rhs._vectorDimension))
            {
                ivarsEqual = false;
            }
            if (!(_padding1 == rhs._padding1))
            {
                ivarsEqual = false;
            }
            if (!(_padding2 == rhs._padding2))
            {
                ivarsEqual = false;
            }

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


            return(ivarsEqual);
        }
Exemple #11
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(MinefieldQueryPdu rhs)
        {
            bool ivarsEqual = true;

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

            ivarsEqual = base.Equals(rhs);

            if (!(_minefieldID.Equals(rhs._minefieldID)))
            {
                ivarsEqual = false;
            }
            if (!(_requestingEntityID.Equals(rhs._requestingEntityID)))
            {
                ivarsEqual = false;
            }
            if (!(_requestID == rhs._requestID))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfPerimeterPoints == rhs._numberOfPerimeterPoints))
            {
                ivarsEqual = false;
            }
            if (!(_pad2 == rhs._pad2))
            {
                ivarsEqual = false;
            }
            if (!(_numberOfSensorTypes == rhs._numberOfSensorTypes))
            {
                ivarsEqual = false;
            }
            if (!(_dataFilter == rhs._dataFilter))
            {
                ivarsEqual = false;
            }
            if (!(_requestedMineType.Equals(rhs._requestedMineType)))
            {
                ivarsEqual = false;
            }

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


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


            return(ivarsEqual);
        }