Beispiel #1
0
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<FirePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<munitionID>" + System.Environment.NewLine);
                _munitionID.reflection(sb);
                sb.Append("</munitionID>" + System.Environment.NewLine);
                sb.Append("<eventID>" + System.Environment.NewLine);
                _eventID.reflection(sb);
                sb.Append("</eventID>" + System.Environment.NewLine);
                sb.Append("<fireMissionIndex type=\"uint\">" + _fireMissionIndex.ToString() + "</fireMissionIndex> " + System.Environment.NewLine);
                sb.Append("<locationInWorldCoordinates>" + System.Environment.NewLine);
                _locationInWorldCoordinates.reflection(sb);
                sb.Append("</locationInWorldCoordinates>" + System.Environment.NewLine);
                sb.Append("<burstDescriptor>" + System.Environment.NewLine);
                _burstDescriptor.reflection(sb);
                sb.Append("</burstDescriptor>" + System.Environment.NewLine);
                sb.Append("<velocity>" + System.Environment.NewLine);
                _velocity.reflection(sb);
                sb.Append("</velocity>" + System.Environment.NewLine);
                sb.Append("<range type=\"float\">" + _range.ToString() + "</range> " + System.Environment.NewLine);
                sb.Append("</FirePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
Beispiel #2
0
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        public void reflection(StringBuilder sb)
        {
            sb.Append("<LinearSegmentParameter>" + System.Environment.NewLine);
            try
            {
                sb.Append("<segmentNumber type=\"byte\">" + _segmentNumber.ToString() + "</segmentNumber> " + System.Environment.NewLine);
                sb.Append("<segmentAppearance>" + System.Environment.NewLine);
                _segmentAppearance.reflection(sb);
                sb.Append("</segmentAppearance>" + System.Environment.NewLine);
                sb.Append("<location>" + System.Environment.NewLine);
                _location.reflection(sb);
                sb.Append("</location>" + System.Environment.NewLine);
                sb.Append("<orientation>" + System.Environment.NewLine);
                _orientation.reflection(sb);
                sb.Append("</orientation>" + System.Environment.NewLine);
                sb.Append("<segmentLength type=\"ushort\">" + _segmentLength.ToString() + "</segmentLength> " + System.Environment.NewLine);
                sb.Append("<segmentWidth type=\"ushort\">" + _segmentWidth.ToString() + "</segmentWidth> " + System.Environment.NewLine);
                sb.Append("<segmentHeight type=\"ushort\">" + _segmentHeight.ToString() + "</segmentHeight> " + System.Environment.NewLine);
                sb.Append("<segmentDepth type=\"ushort\">" + _segmentDepth.ToString() + "</segmentDepth> " + System.Environment.NewLine);
                sb.Append("<pad1 type=\"uint\">" + _pad1.ToString() + "</pad1> " + System.Environment.NewLine);
                sb.Append("</LinearSegmentParameter>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<TransmitterPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<radioEntityType>" + System.Environment.NewLine);
                _radioEntityType.reflection(sb);
                sb.Append("</radioEntityType>" + System.Environment.NewLine);
                sb.Append("<transmitState type=\"byte\">" + _transmitState.ToString() + "</transmitState> " + System.Environment.NewLine);
                sb.Append("<inputSource type=\"byte\">" + _inputSource.ToString() + "</inputSource> " + System.Environment.NewLine);
                sb.Append("<padding1 type=\"ushort\">" + _padding1.ToString() + "</padding1> " + System.Environment.NewLine);
                sb.Append("<antennaLocation>" + System.Environment.NewLine);
                _antennaLocation.reflection(sb);
                sb.Append("</antennaLocation>" + System.Environment.NewLine);
                sb.Append("<relativeAntennaLocation>" + System.Environment.NewLine);
                _relativeAntennaLocation.reflection(sb);
                sb.Append("</relativeAntennaLocation>" + System.Environment.NewLine);
                sb.Append("<antennaPatternType type=\"ushort\">" + _antennaPatternType.ToString() + "</antennaPatternType> " + System.Environment.NewLine);
                sb.Append("<antennaPatternList type=\"ushort\">" + _antennaPatternList.Count.ToString() + "</antennaPatternList> " + System.Environment.NewLine);
                sb.Append("<frequency type=\"ulong\">" + _frequency.ToString() + "</frequency> " + System.Environment.NewLine);
                sb.Append("<transmitFrequencyBandwidth type=\"float\">" + _transmitFrequencyBandwidth.ToString() + "</transmitFrequencyBandwidth> " + System.Environment.NewLine);
                sb.Append("<power type=\"float\">" + _power.ToString() + "</power> " + System.Environment.NewLine);
                sb.Append("<modulationType>" + System.Environment.NewLine);
                _modulationType.reflection(sb);
                sb.Append("</modulationType>" + System.Environment.NewLine);
                sb.Append("<cryptoSystem type=\"ushort\">" + _cryptoSystem.ToString() + "</cryptoSystem> " + System.Environment.NewLine);
                sb.Append("<cryptoKeyId type=\"ushort\">" + _cryptoKeyId.ToString() + "</cryptoKeyId> " + System.Environment.NewLine);
                sb.Append("<modulationParametersList type=\"byte\">" + _modulationParametersList.Count.ToString() + "</modulationParametersList> " + System.Environment.NewLine);
                sb.Append("<padding2 type=\"ushort\">" + _padding2.ToString() + "</padding2> " + System.Environment.NewLine);
                sb.Append("<padding3 type=\"byte\">" + _padding3.ToString() + "</padding3> " + System.Environment.NewLine);

                for (int idx = 0; idx < _modulationParametersList.Count; idx++)
                {
                    sb.Append("<modulationParametersList" + idx.ToString() + " type=\"Vector3Float\">" + System.Environment.NewLine);
                    Vector3Float aVector3Float = (Vector3Float)_modulationParametersList[idx];
                    aVector3Float.reflection(sb);
                    sb.Append("</modulationParametersList" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling


                for (int idx = 0; idx < _antennaPatternList.Count; idx++)
                {
                    sb.Append("<antennaPatternList" + idx.ToString() + " type=\"Vector3Float\">" + System.Environment.NewLine);
                    Vector3Float aVector3Float = (Vector3Float)_antennaPatternList[idx];
                    aVector3Float.reflection(sb);
                    sb.Append("</antennaPatternList" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("</TransmitterPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<EntityStatePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<entityID>" + System.Environment.NewLine);
                _entityID.reflection(sb);
                sb.Append("</entityID>" + System.Environment.NewLine);
                sb.Append("<forceId type=\"byte\">" + _forceId.ToString() + "</forceId> " + System.Environment.NewLine);
                sb.Append("<articulationParameters type=\"byte\">" + _articulationParameters.Count.ToString() + "</articulationParameters> " + System.Environment.NewLine);
                sb.Append("<entityType>" + System.Environment.NewLine);
                _entityType.reflection(sb);
                sb.Append("</entityType>" + System.Environment.NewLine);
                sb.Append("<alternativeEntityType>" + System.Environment.NewLine);
                _alternativeEntityType.reflection(sb);
                sb.Append("</alternativeEntityType>" + System.Environment.NewLine);
                sb.Append("<entityLinearVelocity>" + System.Environment.NewLine);
                _entityLinearVelocity.reflection(sb);
                sb.Append("</entityLinearVelocity>" + System.Environment.NewLine);
                sb.Append("<entityLocation>" + System.Environment.NewLine);
                _entityLocation.reflection(sb);
                sb.Append("</entityLocation>" + System.Environment.NewLine);
                sb.Append("<entityOrientation>" + System.Environment.NewLine);
                _entityOrientation.reflection(sb);
                sb.Append("</entityOrientation>" + System.Environment.NewLine);
                sb.Append("<entityAppearance type=\"uint\">" + _entityAppearance.ToString() + "</entityAppearance> " + System.Environment.NewLine);
                sb.Append("<deadReckoningParameters>" + System.Environment.NewLine);
                _deadReckoningParameters.reflection(sb);
                sb.Append("</deadReckoningParameters>" + System.Environment.NewLine);
                sb.Append("<marking>" + System.Environment.NewLine);
                _marking.reflection(sb);
                sb.Append("</marking>" + System.Environment.NewLine);
                sb.Append("<capabilities type=\"uint\">" + _capabilities.ToString() + "</capabilities> " + System.Environment.NewLine);

                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    sb.Append("<articulationParameters" + idx.ToString() + " type=\"ArticulationParameter\">" + System.Environment.NewLine);
                    ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx];
                    aArticulationParameter.reflection(sb);
                    sb.Append("</articulationParameters" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("</EntityStatePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Beispiel #5
0
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<MinefieldStatePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<minefieldID>" + System.Environment.NewLine);
                _minefieldID.reflection(sb);
                sb.Append("</minefieldID>" + System.Environment.NewLine);
                sb.Append("<minefieldSequence type=\"ushort\">" + _minefieldSequence.ToString() + "</minefieldSequence> " + System.Environment.NewLine);
                sb.Append("<forceID type=\"byte\">" + _forceID.ToString() + "</forceID> " + System.Environment.NewLine);
                sb.Append("<perimeterPoints type=\"byte\">" + _perimeterPoints.Count.ToString() + "</perimeterPoints> " + System.Environment.NewLine);
                sb.Append("<minefieldType>" + System.Environment.NewLine);
                _minefieldType.reflection(sb);
                sb.Append("</minefieldType>" + System.Environment.NewLine);
                sb.Append("<mineType type=\"ushort\">" + _mineType.Count.ToString() + "</mineType> " + System.Environment.NewLine);
                sb.Append("<minefieldLocation>" + System.Environment.NewLine);
                _minefieldLocation.reflection(sb);
                sb.Append("</minefieldLocation>" + System.Environment.NewLine);
                sb.Append("<minefieldOrientation>" + System.Environment.NewLine);
                _minefieldOrientation.reflection(sb);
                sb.Append("</minefieldOrientation>" + System.Environment.NewLine);
                sb.Append("<appearance type=\"ushort\">" + _appearance.ToString() + "</appearance> " + System.Environment.NewLine);
                sb.Append("<protocolMode type=\"ushort\">" + _protocolMode.ToString() + "</protocolMode> " + System.Environment.NewLine);

                for (int idx = 0; idx < _perimeterPoints.Count; idx++)
                {
                    sb.Append("<perimeterPoints" + idx.ToString() + " type=\"Point\">" + System.Environment.NewLine);
                    Point aPoint = (Point)_perimeterPoints[idx];
                    aPoint.reflection(sb);
                    sb.Append("</perimeterPoints" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling


                for (int idx = 0; idx < _mineType.Count; idx++)
                {
                    sb.Append("<mineType" + idx.ToString() + " type=\"EntityType\">" + System.Environment.NewLine);
                    EntityType aEntityType = (EntityType)_mineType[idx];
                    aEntityType.reflection(sb);
                    sb.Append("</mineType" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("</MinefieldStatePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<ArealObjectStatePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<objectID>" + System.Environment.NewLine);
                _objectID.reflection(sb);
                sb.Append("</objectID>" + System.Environment.NewLine);
                sb.Append("<referencedObjectID>" + System.Environment.NewLine);
                _referencedObjectID.reflection(sb);
                sb.Append("</referencedObjectID>" + System.Environment.NewLine);
                sb.Append("<updateNumber type=\"ushort\">" + _updateNumber.ToString() + "</updateNumber> " + System.Environment.NewLine);
                sb.Append("<forceID type=\"byte\">" + _forceID.ToString() + "</forceID> " + System.Environment.NewLine);
                sb.Append("<modifications type=\"byte\">" + _modifications.ToString() + "</modifications> " + System.Environment.NewLine);
                sb.Append("<objectType>" + System.Environment.NewLine);
                _objectType.reflection(sb);
                sb.Append("</objectType>" + System.Environment.NewLine);
                sb.Append("<objectAppearance>" + System.Environment.NewLine);
                _objectAppearance.reflection(sb);
                sb.Append("</objectAppearance>" + System.Environment.NewLine);
                sb.Append("<objectLocation type=\"ushort\">" + _objectLocation.Count.ToString() + "</objectLocation> " + System.Environment.NewLine);
                sb.Append("<requesterID>" + System.Environment.NewLine);
                _requesterID.reflection(sb);
                sb.Append("</requesterID>" + System.Environment.NewLine);
                sb.Append("<receivingID>" + System.Environment.NewLine);
                _receivingID.reflection(sb);
                sb.Append("</receivingID>" + System.Environment.NewLine);

                for (int idx = 0; idx < _objectLocation.Count; idx++)
                {
                    sb.Append("<objectLocation" + idx.ToString() + " type=\"Vector3Double\">" + System.Environment.NewLine);
                    Vector3Double aVector3Double = (Vector3Double)_objectLocation[idx];
                    aVector3Double.reflection(sb);
                    sb.Append("</objectLocation" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("</ArealObjectStatePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<DetonationPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<munitionID>" + System.Environment.NewLine);
                _munitionID.reflection(sb);
                sb.Append("</munitionID>" + System.Environment.NewLine);
                sb.Append("<eventID>" + System.Environment.NewLine);
                _eventID.reflection(sb);
                sb.Append("</eventID>" + System.Environment.NewLine);
                sb.Append("<velocity>" + System.Environment.NewLine);
                _velocity.reflection(sb);
                sb.Append("</velocity>" + System.Environment.NewLine);
                sb.Append("<locationInWorldCoordinates>" + System.Environment.NewLine);
                _locationInWorldCoordinates.reflection(sb);
                sb.Append("</locationInWorldCoordinates>" + System.Environment.NewLine);
                sb.Append("<burstDescriptor>" + System.Environment.NewLine);
                _burstDescriptor.reflection(sb);
                sb.Append("</burstDescriptor>" + System.Environment.NewLine);
                sb.Append("<locationInEntityCoordinates>" + System.Environment.NewLine);
                _locationInEntityCoordinates.reflection(sb);
                sb.Append("</locationInEntityCoordinates>" + System.Environment.NewLine);
                sb.Append("<detonationResult type=\"byte\">" + _detonationResult.ToString() + "</detonationResult> " + System.Environment.NewLine);
                sb.Append("<articulationParameters type=\"byte\">" + _articulationParameters.Count.ToString() + "</articulationParameters> " + System.Environment.NewLine);
                sb.Append("<pad type=\"short\">" + _pad.ToString() + "</pad> " + System.Environment.NewLine);

                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    sb.Append("<articulationParameters" + idx.ToString() + " type=\"ArticulationParameter\">" + System.Environment.NewLine);
                    ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx];
                    aArticulationParameter.reflection(sb);
                    sb.Append("</articulationParameters" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("</DetonationPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Beispiel #8
0
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        public void reflection(StringBuilder sb)
        {
            sb.Append("<AntennaLocation>" + System.Environment.NewLine);
            try
            {
                sb.Append("<antennaLocation>" + System.Environment.NewLine);
                _antennaLocation.reflection(sb);
                sb.Append("</antennaLocation>" + System.Environment.NewLine);
                sb.Append("<relativeAntennaLocation>" + System.Environment.NewLine);
                _relativeAntennaLocation.reflection(sb);
                sb.Append("</relativeAntennaLocation>" + System.Environment.NewLine);
                sb.Append("</AntennaLocation>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
Beispiel #9
0
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<PointObjectStatePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<objectID>" + System.Environment.NewLine);
                _objectID.reflection(sb);
                sb.Append("</objectID>" + System.Environment.NewLine);
                sb.Append("<referencedObjectID>" + System.Environment.NewLine);
                _referencedObjectID.reflection(sb);
                sb.Append("</referencedObjectID>" + System.Environment.NewLine);
                sb.Append("<updateNumber type=\"ushort\">" + _updateNumber.ToString() + "</updateNumber> " + System.Environment.NewLine);
                sb.Append("<forceID type=\"byte\">" + _forceID.ToString() + "</forceID> " + System.Environment.NewLine);
                sb.Append("<modifications type=\"byte\">" + _modifications.ToString() + "</modifications> " + System.Environment.NewLine);
                sb.Append("<objectType>" + System.Environment.NewLine);
                _objectType.reflection(sb);
                sb.Append("</objectType>" + System.Environment.NewLine);
                sb.Append("<objectLocation>" + System.Environment.NewLine);
                _objectLocation.reflection(sb);
                sb.Append("</objectLocation>" + System.Environment.NewLine);
                sb.Append("<objectOrientation>" + System.Environment.NewLine);
                _objectOrientation.reflection(sb);
                sb.Append("</objectOrientation>" + System.Environment.NewLine);
                sb.Append("<objectAppearance type=\"double\">" + _objectAppearance.ToString() + "</objectAppearance> " + System.Environment.NewLine);
                sb.Append("<requesterID>" + System.Environment.NewLine);
                _requesterID.reflection(sb);
                sb.Append("</requesterID>" + System.Environment.NewLine);
                sb.Append("<receivingID>" + System.Environment.NewLine);
                _receivingID.reflection(sb);
                sb.Append("</receivingID>" + System.Environment.NewLine);
                sb.Append("<pad2 type=\"uint\">" + _pad2.ToString() + "</pad2> " + System.Environment.NewLine);
                sb.Append("</PointObjectStatePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<EntityStateUpdatePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<entityID>" + System.Environment.NewLine);
                _entityID.reflection(sb);
                sb.Append("</entityID>" + System.Environment.NewLine);
                sb.Append("<padding1 type=\"byte\">" + _padding1.ToString() + "</padding1> " + System.Environment.NewLine);
                sb.Append("<articulationParameters type=\"byte\">" + _articulationParameters.Count.ToString() + "</articulationParameters> " + System.Environment.NewLine);
                sb.Append("<entityLinearVelocity>" + System.Environment.NewLine);
                _entityLinearVelocity.reflection(sb);
                sb.Append("</entityLinearVelocity>" + System.Environment.NewLine);
                sb.Append("<entityLocation>" + System.Environment.NewLine);
                _entityLocation.reflection(sb);
                sb.Append("</entityLocation>" + System.Environment.NewLine);
                sb.Append("<entityOrientation>" + System.Environment.NewLine);
                _entityOrientation.reflection(sb);
                sb.Append("</entityOrientation>" + System.Environment.NewLine);
                sb.Append("<entityAppearance type=\"uint\">" + _entityAppearance.ToString() + "</entityAppearance> " + System.Environment.NewLine);

                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    sb.Append("<articulationParameters" + idx.ToString() + " type=\"ArticulationParameter\">" + System.Environment.NewLine);
                    ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx];
                    aArticulationParameter.reflection(sb);
                    sb.Append("</articulationParameters" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("</EntityStateUpdatePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
Beispiel #11
0
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<DesignatorPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<designatingEntityID>" + System.Environment.NewLine);
                _designatingEntityID.reflection(sb);
                sb.Append("</designatingEntityID>" + System.Environment.NewLine);
                sb.Append("<codeName type=\"ushort\">" + _codeName.ToString() + "</codeName> " + System.Environment.NewLine);
                sb.Append("<designatedEntityID>" + System.Environment.NewLine);
                _designatedEntityID.reflection(sb);
                sb.Append("</designatedEntityID>" + System.Environment.NewLine);
                sb.Append("<designatorCode type=\"ushort\">" + _designatorCode.ToString() + "</designatorCode> " + System.Environment.NewLine);
                sb.Append("<designatorPower type=\"float\">" + _designatorPower.ToString() + "</designatorPower> " + System.Environment.NewLine);
                sb.Append("<designatorWavelength type=\"float\">" + _designatorWavelength.ToString() + "</designatorWavelength> " + System.Environment.NewLine);
                sb.Append("<designatorSpotWrtDesignated>" + System.Environment.NewLine);
                _designatorSpotWrtDesignated.reflection(sb);
                sb.Append("</designatorSpotWrtDesignated>" + System.Environment.NewLine);
                sb.Append("<designatorSpotLocation>" + System.Environment.NewLine);
                _designatorSpotLocation.reflection(sb);
                sb.Append("</designatorSpotLocation>" + System.Environment.NewLine);
                sb.Append("<deadReckoningAlgorithm type=\"byte\">" + _deadReckoningAlgorithm.ToString() + "</deadReckoningAlgorithm> " + System.Environment.NewLine);
                sb.Append("<padding1 type=\"ushort\">" + _padding1.ToString() + "</padding1> " + System.Environment.NewLine);
                sb.Append("<padding2 type=\"byte\">" + _padding2.ToString() + "</padding2> " + System.Environment.NewLine);
                sb.Append("<entityLinearAcceleration>" + System.Environment.NewLine);
                _entityLinearAcceleration.reflection(sb);
                sb.Append("</entityLinearAcceleration>" + System.Environment.NewLine);
                sb.Append("</DesignatorPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
Beispiel #12
0
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<AggregateStatePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<aggregateID>" + System.Environment.NewLine);
                _aggregateID.reflection(sb);
                sb.Append("</aggregateID>" + System.Environment.NewLine);
                sb.Append("<forceID type=\"byte\">" + _forceID.ToString() + "</forceID> " + System.Environment.NewLine);
                sb.Append("<aggregateState type=\"byte\">" + _aggregateState.ToString() + "</aggregateState> " + System.Environment.NewLine);
                sb.Append("<aggregateType>" + System.Environment.NewLine);
                _aggregateType.reflection(sb);
                sb.Append("</aggregateType>" + System.Environment.NewLine);
                sb.Append("<formation type=\"uint\">" + _formation.ToString() + "</formation> " + System.Environment.NewLine);
                sb.Append("<aggregateMarking>" + System.Environment.NewLine);
                _aggregateMarking.reflection(sb);
                sb.Append("</aggregateMarking>" + System.Environment.NewLine);
                sb.Append("<dimensions>" + System.Environment.NewLine);
                _dimensions.reflection(sb);
                sb.Append("</dimensions>" + System.Environment.NewLine);
                sb.Append("<orientation>" + System.Environment.NewLine);
                _orientation.reflection(sb);
                sb.Append("</orientation>" + System.Environment.NewLine);
                sb.Append("<centerOfMass>" + System.Environment.NewLine);
                _centerOfMass.reflection(sb);
                sb.Append("</centerOfMass>" + System.Environment.NewLine);
                sb.Append("<velocity>" + System.Environment.NewLine);
                _velocity.reflection(sb);
                sb.Append("</velocity>" + System.Environment.NewLine);
                sb.Append("<aggregateIDList type=\"ushort\">" + _aggregateIDList.Count.ToString() + "</aggregateIDList> " + System.Environment.NewLine);
                sb.Append("<entityIDList type=\"ushort\">" + _entityIDList.Count.ToString() + "</entityIDList> " + System.Environment.NewLine);
                sb.Append("<silentAggregateSystemList type=\"ushort\">" + _silentAggregateSystemList.Count.ToString() + "</silentAggregateSystemList> " + System.Environment.NewLine);
                sb.Append("<silentEntitySystemList type=\"ushort\">" + _silentEntitySystemList.Count.ToString() + "</silentEntitySystemList> " + System.Environment.NewLine);

                for (int idx = 0; idx < _aggregateIDList.Count; idx++)
                {
                    sb.Append("<aggregateIDList" + idx.ToString() + " type=\"AggregateID\">" + System.Environment.NewLine);
                    AggregateID aAggregateID = (AggregateID)_aggregateIDList[idx];
                    aAggregateID.reflection(sb);
                    sb.Append("</aggregateIDList" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling


                for (int idx = 0; idx < _entityIDList.Count; idx++)
                {
                    sb.Append("<entityIDList" + idx.ToString() + " type=\"EntityID\">" + System.Environment.NewLine);
                    EntityID aEntityID = (EntityID)_entityIDList[idx];
                    aEntityID.reflection(sb);
                    sb.Append("</entityIDList" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("<pad2 type=\"byte\">" + _pad2.ToString() + "</pad2> " + System.Environment.NewLine);

                for (int idx = 0; idx < _silentAggregateSystemList.Count; idx++)
                {
                    sb.Append("<silentAggregateSystemList" + idx.ToString() + " type=\"EntityType\">" + System.Environment.NewLine);
                    EntityType aEntityType = (EntityType)_silentAggregateSystemList[idx];
                    aEntityType.reflection(sb);
                    sb.Append("</silentAggregateSystemList" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling


                for (int idx = 0; idx < _silentEntitySystemList.Count; idx++)
                {
                    sb.Append("<silentEntitySystemList" + idx.ToString() + " type=\"EntityType\">" + System.Environment.NewLine);
                    EntityType aEntityType = (EntityType)_silentEntitySystemList[idx];
                    aEntityType.reflection(sb);
                    sb.Append("</silentEntitySystemList" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("<variableDatumList type=\"uint\">" + _variableDatumList.Count.ToString() + "</variableDatumList> " + System.Environment.NewLine);

                for (int idx = 0; idx < _variableDatumList.Count; idx++)
                {
                    sb.Append("<variableDatumList" + idx.ToString() + " type=\"VariableDatum\">" + System.Environment.NewLine);
                    VariableDatum aVariableDatum = (VariableDatum)_variableDatumList[idx];
                    aVariableDatum.reflection(sb);
                    sb.Append("</variableDatumList" + idx.ToString() + ">" + System.Environment.NewLine);
                } // end of list marshalling

                sb.Append("</AggregateStatePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method