} // 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("<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