Exemple #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
        } // 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("<IffAtcNavAidsLayer1Pdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<emittingEntityId>" + System.Environment.NewLine);
                _emittingEntityId.reflection(sb);
                sb.Append("</emittingEntityId>" + System.Environment.NewLine);
                sb.Append("<eventID>" + System.Environment.NewLine);
                _eventID.reflection(sb);
                sb.Append("</eventID>" + System.Environment.NewLine);
                sb.Append("<location>" + System.Environment.NewLine);
                _location.reflection(sb);
                sb.Append("</location>" + System.Environment.NewLine);
                sb.Append("<systemID>" + System.Environment.NewLine);
                _systemID.reflection(sb);
                sb.Append("</systemID>" + System.Environment.NewLine);
                sb.Append("<pad2 type=\"ushort\">" + _pad2.ToString() + "</pad2> " + System.Environment.NewLine);
                sb.Append("<fundamentalParameters>" + System.Environment.NewLine);
                _fundamentalParameters.reflection(sb);
                sb.Append("</fundamentalParameters>" + System.Environment.NewLine);
                sb.Append("</IffAtcNavAidsLayer1Pdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Exemple #3
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("<CollisionPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<issuingEntityID>" + System.Environment.NewLine);
                _issuingEntityID.reflection(sb);
                sb.Append("</issuingEntityID>" + System.Environment.NewLine);
                sb.Append("<collidingEntityID>" + System.Environment.NewLine);
                _collidingEntityID.reflection(sb);
                sb.Append("</collidingEntityID>" + System.Environment.NewLine);
                sb.Append("<eventID>" + System.Environment.NewLine);
                _eventID.reflection(sb);
                sb.Append("</eventID>" + System.Environment.NewLine);
                sb.Append("<collisionType type=\"byte\">" + _collisionType.ToString() + "</collisionType> " + System.Environment.NewLine);
                sb.Append("<pad type=\"byte\">" + _pad.ToString() + "</pad> " + System.Environment.NewLine);
                sb.Append("<velocity>" + System.Environment.NewLine);
                _velocity.reflection(sb);
                sb.Append("</velocity>" + System.Environment.NewLine);
                sb.Append("<mass type=\"float\">" + _mass.ToString() + "</mass> " + System.Environment.NewLine);
                sb.Append("<location>" + System.Environment.NewLine);
                _location.reflection(sb);
                sb.Append("</location>" + System.Environment.NewLine);
                sb.Append("</CollisionPdu>" + 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("<ElectronicEmissionsPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<emittingEntityID>" + System.Environment.NewLine);
                _emittingEntityID.reflection(sb);
                sb.Append("</emittingEntityID>" + System.Environment.NewLine);
                sb.Append("<eventID>" + System.Environment.NewLine);
                _eventID.reflection(sb);
                sb.Append("</eventID>" + System.Environment.NewLine);
                sb.Append("<stateUpdateIndicator type=\"byte\">" + _stateUpdateIndicator.ToString() + "</stateUpdateIndicator> " + System.Environment.NewLine);
                sb.Append("<systems type=\"byte\">" + _systems.Count.ToString() + "</systems> " + System.Environment.NewLine);
                sb.Append("<paddingForEmissionsPdu type=\"ushort\">" + _paddingForEmissionsPdu.ToString() + "</paddingForEmissionsPdu> " + System.Environment.NewLine);

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

                sb.Append("</ElectronicEmissionsPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Exemple #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("<UaPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<emittingEntityID>" + System.Environment.NewLine);
                _emittingEntityID.reflection(sb);
                sb.Append("</emittingEntityID>" + System.Environment.NewLine);
                sb.Append("<eventID>" + System.Environment.NewLine);
                _eventID.reflection(sb);
                sb.Append("</eventID>" + System.Environment.NewLine);
                sb.Append("<stateChangeIndicator type=\"byte\">" + _stateChangeIndicator.ToString() + "</stateChangeIndicator> " + System.Environment.NewLine);
                sb.Append("<pad type=\"byte\">" + _pad.ToString() + "</pad> " + System.Environment.NewLine);
                sb.Append("<passiveParameterIndex type=\"ushort\">" + _passiveParameterIndex.ToString() + "</passiveParameterIndex> " + System.Environment.NewLine);
                sb.Append("<propulsionPlantConfiguration type=\"byte\">" + _propulsionPlantConfiguration.ToString() + "</propulsionPlantConfiguration> " + System.Environment.NewLine);
                sb.Append("<shaftRPMs type=\"byte\">" + _shaftRPMs.Count.ToString() + "</shaftRPMs> " + System.Environment.NewLine);
                sb.Append("<apaData type=\"byte\">" + _apaData.Count.ToString() + "</apaData> " + System.Environment.NewLine);
                sb.Append("<emitterSystems type=\"byte\">" + _emitterSystems.Count.ToString() + "</emitterSystems> " + System.Environment.NewLine);

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


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


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

                sb.Append("</UaPdu>" + 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("<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
        } // 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("<CollisionElasticPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<issuingEntityID>" + System.Environment.NewLine);
                _issuingEntityID.reflection(sb);
                sb.Append("</issuingEntityID>" + System.Environment.NewLine);
                sb.Append("<collidingEntityID>" + System.Environment.NewLine);
                _collidingEntityID.reflection(sb);
                sb.Append("</collidingEntityID>" + System.Environment.NewLine);
                sb.Append("<collisionEventID>" + System.Environment.NewLine);
                _collisionEventID.reflection(sb);
                sb.Append("</collisionEventID>" + System.Environment.NewLine);
                sb.Append("<pad type=\"short\">" + _pad.ToString() + "</pad> " + System.Environment.NewLine);
                sb.Append("<contactVelocity>" + System.Environment.NewLine);
                _contactVelocity.reflection(sb);
                sb.Append("</contactVelocity>" + System.Environment.NewLine);
                sb.Append("<mass type=\"float\">" + _mass.ToString() + "</mass> " + System.Environment.NewLine);
                sb.Append("<location>" + System.Environment.NewLine);
                _location.reflection(sb);
                sb.Append("</location>" + System.Environment.NewLine);
                sb.Append("<collisionResultXX type=\"float\">" + _collisionResultXX.ToString() + "</collisionResultXX> " + System.Environment.NewLine);
                sb.Append("<collisionResultXY type=\"float\">" + _collisionResultXY.ToString() + "</collisionResultXY> " + System.Environment.NewLine);
                sb.Append("<collisionResultXZ type=\"float\">" + _collisionResultXZ.ToString() + "</collisionResultXZ> " + System.Environment.NewLine);
                sb.Append("<collisionResultYY type=\"float\">" + _collisionResultYY.ToString() + "</collisionResultYY> " + System.Environment.NewLine);
                sb.Append("<collisionResultYZ type=\"float\">" + _collisionResultYZ.ToString() + "</collisionResultYZ> " + System.Environment.NewLine);
                sb.Append("<collisionResultZZ type=\"float\">" + _collisionResultZZ.ToString() + "</collisionResultZZ> " + System.Environment.NewLine);
                sb.Append("<unitSurfaceNormal>" + System.Environment.NewLine);
                _unitSurfaceNormal.reflection(sb);
                sb.Append("</unitSurfaceNormal>" + System.Environment.NewLine);
                sb.Append("<coefficientOfRestitution type=\"float\">" + _coefficientOfRestitution.ToString() + "</coefficientOfRestitution> " + System.Environment.NewLine);
                sb.Append("</CollisionElasticPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method