public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { dos.WriteUnsignedInt((uint)this._requestID); dos.WriteUnsignedInt((uint)this._actionID); dos.WriteUnsignedInt((uint)this._fixedDatums.Count); dos.WriteUnsignedInt((uint)this._variableDatums.Count); for (int idx = 0; idx < this._fixedDatums.Count; idx++) { FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; aFixedDatum.Marshal(dos); } for (int idx = 0; idx < this._variableDatums.Count; idx++) { VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; aVariableDatum.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { this._groupEntityID.Marshal(dos); dos.WriteUnsignedByte((byte)this._groupedEntityCategory); dos.WriteUnsignedByte((byte)this._groupedEntityDescriptions.Count); dos.WriteUnsignedInt((uint)this._pad2); dos.WriteDouble((double)this._latitude); dos.WriteDouble((double)this._longitude); for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) { VariableDatum aVariableDatum = (VariableDatum)this._groupedEntityDescriptions[idx]; aVariableDatum.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { this._aggregateID.Marshal(dos); dos.WriteUnsignedByte((byte)this._forceID); dos.WriteUnsignedByte((byte)this._aggregateState); this._aggregateType.Marshal(dos); dos.WriteUnsignedInt((uint)this._formation); this._aggregateMarking.Marshal(dos); this._dimensions.Marshal(dos); this._orientation.Marshal(dos); this._centerOfMass.Marshal(dos); this._velocity.Marshal(dos); dos.WriteUnsignedShort((ushort)this._aggregateIDList.Count); dos.WriteUnsignedShort((ushort)this._entityIDList.Count); dos.WriteUnsignedShort((ushort)this._silentAggregateSystemList.Count); dos.WriteUnsignedShort((ushort)this._silentEntitySystemList.Count); for (int idx = 0; idx < this._aggregateIDList.Count; idx++) { AggregateID aAggregateID = (AggregateID)this._aggregateIDList[idx]; aAggregateID.Marshal(dos); } for (int idx = 0; idx < this._entityIDList.Count; idx++) { EntityID aEntityID = (EntityID)this._entityIDList[idx]; aEntityID.Marshal(dos); } dos.WriteUnsignedByte((byte)this._pad2); for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) { EntityType aEntityType = (EntityType)this._silentAggregateSystemList[idx]; aEntityType.Marshal(dos); } for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) { EntityType aEntityType = (EntityType)this._silentEntitySystemList[idx]; aEntityType.Marshal(dos); } dos.WriteUnsignedInt((uint)this._variableDatumList.Count); for (int idx = 0; idx < this._variableDatumList.Count; idx++) { VariableDatum aVariableDatum = (VariableDatum)this._variableDatumList[idx]; aVariableDatum.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }