/** * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful. */ public bool equals(PointObjectStatePdu 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 (!(_objectLocation.Equals(rhs._objectLocation))) { ivarsEqual = false; } if (!(_objectOrientation.Equals(rhs._objectOrientation))) { ivarsEqual = false; } if (!(_objectAppearance == rhs._objectAppearance)) { ivarsEqual = false; } if (!(_requesterID.Equals(rhs._requesterID))) { ivarsEqual = false; } if (!(_receivingID.Equals(rhs._receivingID))) { ivarsEqual = false; } if (!(_pad2 == rhs._pad2)) { ivarsEqual = false; } return(ivarsEqual); }
/** * Compares for reference equality and value equality. */ public bool equals(EntityStateUpdatePdu rhs) { bool ivarsEqual = true; if (rhs.GetType() != this.GetType()) { return(false); } ivarsEqual = base.Equals(rhs); if (!(_entityID.Equals(rhs._entityID))) { ivarsEqual = false; } if (!(_padding1 == rhs._padding1)) { ivarsEqual = false; } if (!(_numberOfArticulationParameters == rhs._numberOfArticulationParameters)) { 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 (!(_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); }
/** * Compares for reference equality and value equality. */ public bool equals(LinearSegmentParameter rhs) { bool ivarsEqual = true; if (rhs.GetType() != this.GetType()) { return(false); } if (!(_segmentNumber == rhs._segmentNumber)) { ivarsEqual = false; } if (!(_segmentAppearance.Equals(rhs._segmentAppearance))) { ivarsEqual = false; } if (!(_location.Equals(rhs._location))) { ivarsEqual = false; } if (!(_orientation.Equals(rhs._orientation))) { ivarsEqual = false; } if (!(_segmentLength == rhs._segmentLength)) { ivarsEqual = false; } if (!(_segmentWidth == rhs._segmentWidth)) { ivarsEqual = false; } if (!(_segmentHeight == rhs._segmentHeight)) { ivarsEqual = false; } if (!(_segmentDepth == rhs._segmentDepth)) { ivarsEqual = false; } if (!(_pad1 == rhs._pad1)) { ivarsEqual = false; } return(ivarsEqual); }
/** * Compares for reference equality and value equality. */ public bool equals(BeamAntennaPattern rhs) { bool ivarsEqual = true; if (rhs.GetType() != this.GetType()) { return(false); } if (!(_beamDirection.Equals(rhs._beamDirection))) { ivarsEqual = false; } if (!(_azimuthBeamwidth == rhs._azimuthBeamwidth)) { ivarsEqual = false; } if (!(_referenceSystem == rhs._referenceSystem)) { ivarsEqual = false; } if (!(_padding1 == rhs._padding1)) { ivarsEqual = false; } if (!(_padding2 == rhs._padding2)) { ivarsEqual = false; } if (!(_ez == rhs._ez)) { ivarsEqual = false; } if (!(_ex == rhs._ex)) { ivarsEqual = false; } if (!(_phase == rhs._phase)) { 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(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(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(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); }