Пример #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("<IsGroupOfPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<groupEntityID>" + System.Environment.NewLine);
                _groupEntityID.reflection(sb);
                sb.Append("</groupEntityID>" + System.Environment.NewLine);
                sb.Append("<groupedEntityCategory type=\"byte\">" + _groupedEntityCategory.ToString() + "</groupedEntityCategory> " + System.Environment.NewLine);
                sb.Append("<groupedEntityDescriptions type=\"byte\">" + _groupedEntityDescriptions.Count.ToString() + "</groupedEntityDescriptions> " + System.Environment.NewLine);
                sb.Append("<pad2 type=\"uint\">" + _pad2.ToString() + "</pad2> " + System.Environment.NewLine);
                sb.Append("<latitude type=\"double\">" + _latitude.ToString() + "</latitude> " + System.Environment.NewLine);
                sb.Append("<longitude type=\"double\">" + _longitude.ToString() + "</longitude> " + System.Environment.NewLine);

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

                sb.Append("</IsGroupOfPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
Пример #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>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<CommentReliablePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<fixedDatumRecords type=\"uint\">" + _fixedDatumRecords.Count.ToString() + "</fixedDatumRecords> " + System.Environment.NewLine);
                sb.Append("<variableDatumRecords type=\"uint\">" + _variableDatumRecords.Count.ToString() + "</variableDatumRecords> " + System.Environment.NewLine);

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


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

                sb.Append("</CommentReliablePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
Пример #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("<DataQueryReliablePdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<requiredReliabilityService type=\"byte\">" + _requiredReliabilityService.ToString() + "</requiredReliabilityService> " + System.Environment.NewLine);
                sb.Append("<pad1 type=\"ushort\">" + _pad1.ToString() + "</pad1> " + System.Environment.NewLine);
                sb.Append("<pad2 type=\"byte\">" + _pad2.ToString() + "</pad2> " + System.Environment.NewLine);
                sb.Append("<requestID type=\"uint\">" + _requestID.ToString() + "</requestID> " + System.Environment.NewLine);
                sb.Append("<timeInterval type=\"uint\">" + _timeInterval.ToString() + "</timeInterval> " + System.Environment.NewLine);
                sb.Append("<fixedDatumRecords type=\"uint\">" + _fixedDatumRecords.Count.ToString() + "</fixedDatumRecords> " + System.Environment.NewLine);
                sb.Append("<variableDatumRecords type=\"uint\">" + _variableDatumRecords.Count.ToString() + "</variableDatumRecords> " + System.Environment.NewLine);

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


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

                sb.Append("</DataQueryReliablePdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method
Пример #4
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("<EventReportPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<eventType type=\"uint\">" + _eventType.ToString() + "</eventType> " + System.Environment.NewLine);
                sb.Append("<padding1 type=\"uint\">" + _padding1.ToString() + "</padding1> " + System.Environment.NewLine);
                sb.Append("<fixedDatums type=\"uint\">" + _fixedDatums.Count.ToString() + "</fixedDatums> " + System.Environment.NewLine);
                sb.Append("<variableDatums type=\"uint\">" + _variableDatums.Count.ToString() + "</variableDatums> " + System.Environment.NewLine);

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


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

                sb.Append("</EventReportPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Пример #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("<ActionRequestPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<requestID type=\"uint\">" + _requestID.ToString() + "</requestID> " + System.Environment.NewLine);
                sb.Append("<actionID type=\"uint\">" + _actionID.ToString() + "</actionID> " + System.Environment.NewLine);
                sb.Append("<fixedDatums type=\"uint\">" + _fixedDatums.Count.ToString() + "</fixedDatums> " + System.Environment.NewLine);
                sb.Append("<variableDatums type=\"uint\">" + _variableDatums.Count.ToString() + "</variableDatums> " + System.Environment.NewLine);

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


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

                sb.Append("</ActionRequestPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Пример #6
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