public override void Reflection(StringBuilder sb) { sb.AppendLine("<GridAxisRecordRepresentation1>"); base.Reflection(sb); try { sb.AppendLine("<fieldScale type=\"float\">" + this._fieldScale.ToString(CultureInfo.InvariantCulture) + "</fieldScale>"); sb.AppendLine("<fieldOffset type=\"float\">" + this._fieldOffset.ToString(CultureInfo.InvariantCulture) + "</fieldOffset>"); sb.AppendLine("<dataValues type=\"ushort\">" + this._dataValues.Count.ToString(CultureInfo.InvariantCulture) + "</dataValues>"); for (int idx = 0; idx < this._dataValues.Count; idx++) { sb.AppendLine("<dataValues" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"TwoByteChunk\">"); TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._dataValues[idx]; aTwoByteChunk.Reflection(sb); sb.AppendLine("</dataValues" + idx.ToString(CultureInfo.InvariantCulture) + ">"); } sb.AppendLine("</GridAxisRecordRepresentation1>"); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } }
public override void Reflection(StringBuilder sb) { sb.AppendLine("<MinefieldDataPdu>"); base.Reflection(sb); try { sb.AppendLine("<minefieldID>"); this._minefieldID.Reflection(sb); sb.AppendLine("</minefieldID>"); sb.AppendLine("<requestingEntityID>"); this._requestingEntityID.Reflection(sb); sb.AppendLine("</requestingEntityID>"); sb.AppendLine("<minefieldSequenceNumbeer type=\"ushort\">" + this._minefieldSequenceNumbeer.ToString(CultureInfo.InvariantCulture) + "</minefieldSequenceNumbeer>"); sb.AppendLine("<requestID type=\"byte\">" + this._requestID.ToString(CultureInfo.InvariantCulture) + "</requestID>"); sb.AppendLine("<pduSequenceNumber type=\"byte\">" + this._pduSequenceNumber.ToString(CultureInfo.InvariantCulture) + "</pduSequenceNumber>"); sb.AppendLine("<numberOfPdus type=\"byte\">" + this._numberOfPdus.ToString(CultureInfo.InvariantCulture) + "</numberOfPdus>"); sb.AppendLine("<mineLocation type=\"byte\">" + this._mineLocation.Count.ToString(CultureInfo.InvariantCulture) + "</mineLocation>"); sb.AppendLine("<sensorTypes type=\"byte\">" + this._sensorTypes.Count.ToString(CultureInfo.InvariantCulture) + "</sensorTypes>"); sb.AppendLine("<pad2 type=\"byte\">" + this._pad2.ToString(CultureInfo.InvariantCulture) + "</pad2>"); sb.AppendLine("<dataFilter type=\"uint\">" + this._dataFilter.ToString(CultureInfo.InvariantCulture) + "</dataFilter>"); sb.AppendLine("<mineType>"); this._mineType.Reflection(sb); sb.AppendLine("</mineType>"); for (int idx = 0; idx < this._sensorTypes.Count; idx++) { sb.AppendLine("<sensorTypes" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"TwoByteChunk\">"); TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; aTwoByteChunk.Reflection(sb); sb.AppendLine("</sensorTypes" + idx.ToString(CultureInfo.InvariantCulture) + ">"); } sb.AppendLine("<pad3 type=\"byte\">" + this._pad3.ToString(CultureInfo.InvariantCulture) + "</pad3>"); for (int idx = 0; idx < this._mineLocation.Count; idx++) { sb.AppendLine("<mineLocation" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"Vector3Float\">"); Vector3Float aVector3Float = (Vector3Float)this._mineLocation[idx]; aVector3Float.Reflection(sb); sb.AppendLine("</mineLocation" + idx.ToString(CultureInfo.InvariantCulture) + ">"); } sb.AppendLine("</MinefieldDataPdu>"); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } }
public override void Reflection(StringBuilder sb) { sb.AppendLine("<MinefieldQueryPdu>"); base.Reflection(sb); try { sb.AppendLine("<minefieldID>"); this._minefieldID.Reflection(sb); sb.AppendLine("</minefieldID>"); sb.AppendLine("<requestingEntityID>"); this._requestingEntityID.Reflection(sb); sb.AppendLine("</requestingEntityID>"); sb.AppendLine("<requestID type=\"byte\">" + this._requestID.ToString(CultureInfo.InvariantCulture) + "</requestID>"); sb.AppendLine("<requestedPerimeterPoints type=\"byte\">" + this._requestedPerimeterPoints.Count.ToString(CultureInfo.InvariantCulture) + "</requestedPerimeterPoints>"); sb.AppendLine("<pad2 type=\"byte\">" + this._pad2.ToString(CultureInfo.InvariantCulture) + "</pad2>"); sb.AppendLine("<sensorTypes type=\"byte\">" + this._sensorTypes.Count.ToString(CultureInfo.InvariantCulture) + "</sensorTypes>"); sb.AppendLine("<dataFilter type=\"uint\">" + this._dataFilter.ToString(CultureInfo.InvariantCulture) + "</dataFilter>"); sb.AppendLine("<requestedMineType>"); this._requestedMineType.Reflection(sb); sb.AppendLine("</requestedMineType>"); for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) { sb.AppendLine("<requestedPerimeterPoints" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"Point\">"); Point aPoint = (Point)this._requestedPerimeterPoints[idx]; aPoint.Reflection(sb); sb.AppendLine("</requestedPerimeterPoints" + idx.ToString(CultureInfo.InvariantCulture) + ">"); } for (int idx = 0; idx < this._sensorTypes.Count; idx++) { sb.AppendLine("<sensorTypes" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"TwoByteChunk\">"); TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; aTwoByteChunk.Reflection(sb); sb.AppendLine("</sensorTypes" + idx.ToString(CultureInfo.InvariantCulture) + ">"); } sb.AppendLine("</MinefieldQueryPdu>"); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } }