Пример #1
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedInt((uint)this._standardQuantity);
                    dos.WriteUnsignedInt((uint)this._maximumQuantity);
                    dos.WriteUnsignedByte((byte)this._standardQuantityReloadTime);
                    dos.WriteUnsignedByte((byte)this._maximumQuantityReloadTime);
                    dos.WriteUnsignedByte((byte)this._fuelMeasurementUnits);
                    dos.WriteUnsignedByte((byte)this._fuelType);
                    dos.WriteUnsignedByte((byte)this._fuelLocation);
                    dos.WriteUnsignedByte((byte)this._padding);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #2
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._munitionID.Marshal(dos);
                    this._eventID.Marshal(dos);
                    this._velocity.Marshal(dos);
                    this._locationInWorldCoordinates.Marshal(dos);
                    this._burstDescriptor.Marshal(dos);
                    this._locationInEntityCoordinates.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._detonationResult);
                    dos.WriteUnsignedByte((byte)this._articulationParameters.Count);
                    dos.WriteShort((short)this._pad);

                    for (int idx = 0; idx < this._articulationParameters.Count; idx++)
                    {
                        ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx];
                        aArticulationParameter.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Пример #3
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._protocolVersion);
                    dos.WriteUnsignedByte((byte)this._exerciseID);
                    dos.WriteUnsignedByte((byte)this._pduType);
                    dos.WriteUnsignedByte((byte)this._protocolFamily);
                    dos.WriteUnsignedInt((uint)this._timestamp);
                    dos.WriteUnsignedByte((byte)this._pduLength);
                    dos.WriteUnsignedShort((ushort)this._pduStatus);
                    dos.WriteUnsignedByte((byte)this._padding);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #4
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._entityKind);
                    dos.WriteUnsignedByte((byte)this._domain);
                    dos.WriteUnsignedShort((ushort)this._country);
                    dos.WriteUnsignedByte((byte)this._category);
                    dos.WriteUnsignedByte((byte)this._subcategory);
                    dos.WriteUnsignedByte((byte)this._specific);
                    dos.WriteUnsignedByte((byte)this._extra);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Пример #5
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._minefieldID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._minefieldSequence);
                    dos.WriteUnsignedByte((byte)this._forceID);
                    dos.WriteUnsignedByte((byte)this._perimeterPoints.Count);
                    this._minefieldType.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._mineType.Count);
                    this._minefieldLocation.Marshal(dos);
                    this._minefieldOrientation.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._appearance);
                    dos.WriteUnsignedShort((ushort)this._protocolMode);

                    for (int idx = 0; idx < this._perimeterPoints.Count; idx++)
                    {
                        Point aPoint = (Point)this._perimeterPoints[idx];
                        aPoint.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._mineType.Count; idx++)
                    {
                        EntityType aEntityType = (EntityType)this._mineType[idx];
                        aEntityType.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #6
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._beamDataLength);
                    dos.WriteUnsignedByte((byte)this._beamIDNumber);
                    dos.WriteUnsignedShort((ushort)this._beamParameterIndex);
                    this._fundamentalParameterData.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._beamFunction);
                    dos.WriteUnsignedByte((byte)this._trackJamTargets.Count);
                    dos.WriteUnsignedByte((byte)this._highDensityTrackJam);
                    dos.WriteUnsignedByte((byte)this._pad4);
                    dos.WriteUnsignedInt((uint)this._jammingModeSequence);

                    for (int idx = 0; idx < this._trackJamTargets.Count; idx++)
                    {
                        TrackJamTarget aTrackJamTarget = (TrackJamTarget)this._trackJamTargets[idx];
                        aTrackJamTarget.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._objectID.Marshal(dos);
                    this._referencedObjectID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._updateNumber);
                    dos.WriteUnsignedByte((byte)this._forceID);
                    dos.WriteUnsignedByte((byte)this._linearSegmentParameters.Count);
                    this._requesterID.Marshal(dos);
                    this._receivingID.Marshal(dos);
                    this._objectType.Marshal(dos);

                    for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++)
                    {
                        LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx];
                        aLinearSegmentParameter.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._recordType);
                    dos.WriteUnsignedByte((byte)this._changeIndicator);
                    dos.WriteUnsignedShort((ushort)this._partAttachedTo);
                    dos.WriteUnsignedInt((uint)this._parameterType);
                    dos.WriteUnsignedLong((ulong)this._parameterValue);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #9
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._entityKind);
                    dos.WriteUnsignedByte((byte)this._domain);
                    dos.WriteUnsignedShort((ushort)this._country);
                    dos.WriteUnsignedByte((byte)this._category);
                    dos.WriteUnsignedByte((byte)this._subcategory);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._recordType);
                    dos.WriteDouble((double)this._variableParameterFields1);
                    dos.WriteUnsignedInt((uint)this._variableParameterFields2);
                    dos.WriteUnsignedShort((ushort)this._variableParameterFields3);
                    dos.WriteUnsignedByte((byte)this._variableParameterFields4);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #11
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    this._munitionType.Marshal(dos);
                    dos.WriteUnsignedInt((uint)this._station);
                    dos.WriteUnsignedShort((ushort)this._quantity);
                    dos.WriteUnsignedByte((byte)this._munitionStatus);
                    dos.WriteUnsignedByte((byte)this._padding);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #12
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._requiredReliabilityService);
                    dos.WriteUnsignedShort((ushort)this._pad1);
                    dos.WriteUnsignedByte((byte)this._pad2);
                    dos.WriteUnsignedInt((uint)this._requestID);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #13
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._recordType);
                    dos.WriteUnsignedByte((byte)this._changeIndicator);
                    this._entityType.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._padding);
                    dos.WriteUnsignedInt((uint)this._padding1);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedInt((uint)this._requestID);
                    dos.WriteUnsignedByte((byte)this._requiredReliabilityService);
                    dos.WriteUnsignedShort((ushort)this._pad1);
                    dos.WriteUnsignedByte((byte)this._pad2);
                    dos.WriteUnsignedShort((ushort)this._eventType);
                    dos.WriteUnsignedInt((uint)this._time);
                    dos.WriteUnsignedInt((uint)this._recordIDs.Count);

                    for (int idx = 0; idx < this._recordIDs.Count; idx++)
                    {
                        FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx];
                        aFourByteChunk.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._orginatingEntityID.Marshal(dos);
                    this._recevingEntityID.Marshal(dos);
                    dos.WriteUnsignedInt((uint)this._requestID);
                    dos.WriteUnsignedByte((byte)this._requiredReliabilityService);
                    dos.WriteUnsignedByte((byte)this._tranferType);
                    this._transferEntityID.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._recordSets.Count);

                    for (int idx = 0; idx < this._recordSets.Count; idx++)
                    {
                        RecordSet aRecordSet = (RecordSet)this._recordSets[idx];
                        aRecordSet.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Пример #16
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._environmentalSimulationApplicationID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._fieldNumber);
                    dos.WriteUnsignedShort((ushort)this._pduNumber);
                    dos.WriteUnsignedShort((ushort)this._pduTotal);
                    dos.WriteUnsignedShort((ushort)this._coordinateSystem);
                    dos.WriteUnsignedByte((byte)this._gridDataList.Count);
                    dos.WriteUnsignedByte((byte)this._constantGrid);
                    this._environmentType.Marshal(dos);
                    this._orientation.Marshal(dos);
                    dos.WriteLong((long)this._sampleTime);
                    dos.WriteUnsignedInt((uint)this._totalValues);
                    dos.WriteUnsignedByte((byte)this._vectorDimension);
                    dos.WriteUnsignedShort((ushort)this._padding1);
                    dos.WriteUnsignedByte((byte)this._padding2);

                    for (int idx = 0; idx < this._gridDataList.Count; idx++)
                    {
                        GridAxisRecord aGridAxisRecord = (GridAxisRecord)this._gridDataList[idx];
                        aGridAxisRecord.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #17
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._minefieldID.Marshal(dos);
                    this._requestingEntityID.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._requestID);
                    dos.WriteUnsignedByte((byte)this._requestedPerimeterPoints.Count);
                    dos.WriteUnsignedByte((byte)this._pad2);
                    dos.WriteUnsignedByte((byte)this._sensorTypes.Count);
                    dos.WriteUnsignedInt((uint)this._dataFilter);
                    this._requestedMineType.Marshal(dos);

                    for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++)
                    {
                        Point aPoint = (Point)this._requestedPerimeterPoints[idx];
                        aPoint.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._sensorTypes.Count; idx++)
                    {
                        TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx];
                        aTwoByteChunk.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #18
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._realWorldTime.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._reason);
                    dos.WriteUnsignedByte((byte)this._frozenBehavior);
                    dos.WriteShort((short)this._padding1);
                    dos.WriteUnsignedInt((uint)this._requestID);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #19
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedInt((uint)this._recordType);
                    dos.WriteUnsignedShort((ushort)this._recordLength);
                    dos.WriteUnsignedByte((byte)this._communcationsNodeType);
                    dos.WriteUnsignedByte((byte)this._padding);
                    this._communicationsNode.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._elementID);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #20
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedInt((uint)this._environmentType);
                    dos.WriteUnsignedByte((byte)this._length);
                    dos.WriteUnsignedByte((byte)this._index);
                    dos.WriteUnsignedByte((byte)this._padding1);
                    dos.WriteUnsignedByte((byte)this._geometry);
                    dos.WriteUnsignedByte((byte)this._padding2);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #21
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._characterSet);

                    for (int idx = 0; idx < this._characters.Length; idx++)
                    {
                        dos.WriteUnsignedByte(this._characters[idx]);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._environementalProcessID.Marshal(dos);
                    this._environmentType.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._modelType);
                    dos.WriteUnsignedByte((byte)this._environmentStatus);
                    dos.WriteUnsignedByte((byte)this._environmentRecords.Count);
                    dos.WriteUnsignedShort((ushort)this._sequenceNumber);

                    for (int idx = 0; idx < this._environmentRecords.Count; idx++)
                    {
                        Environment aEnvironment = (Environment)this._environmentRecords[idx];
                        aEnvironment.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Пример #23
0
        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;
                    }
                }
            }
        }
Пример #24
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._objectID.Marshal(dos);
                    this._referencedObjectID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._updateNumber);
                    dos.WriteUnsignedByte((byte)this._forceID);
                    dos.WriteUnsignedByte((byte)this._modifications);
                    this._objectType.Marshal(dos);
                    this._objectLocation.Marshal(dos);
                    this._objectOrientation.Marshal(dos);
                    dos.WriteDouble((double)this._objectAppearance);
                    this._requesterID.Marshal(dos);
                    this._receivingID.Marshal(dos);
                    dos.WriteUnsignedInt((uint)this._pad2);
                }
                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
                {
                    dos.WriteUnsignedByte((byte)this._requiredReliabilityService);
                    dos.WriteUnsignedShort((ushort)this._pad1);
                    dos.WriteUnsignedByte((byte)this._pad2);
                    dos.WriteUnsignedInt((uint)this._requestID);
                    dos.WriteUnsignedInt((uint)this._actionID);
                    dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count);
                    dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count);

                    for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++)
                    {
                        FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx];
                        aFixedDatum.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._variableDatumRecords.Count; idx++)
                    {
                        VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx];
                        aVariableDatum.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #26
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._emittingEntityID.Marshal(dos);
                    this._eventID.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._stateUpdateIndicator);
                    dos.WriteUnsignedByte((byte)this._systems.Count);
                    dos.WriteUnsignedShort((ushort)this._paddingForEmissionsPdu);

                    for (int idx = 0; idx < this._systems.Count; idx++)
                    {
                        ElectronicEmissionSystemData aElectronicEmissionSystemData = (ElectronicEmissionSystemData)this._systems[idx];
                        aElectronicEmissionSystemData.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Пример #27
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._recordType);
                    dos.WriteUnsignedByte((byte)this._reasonForSeparation);
                    dos.WriteUnsignedByte((byte)this._preEntityIndicator);
                    dos.WriteUnsignedByte((byte)this._padding1);
                    this._parentEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._padding2);
                    dos.WriteUnsignedInt((uint)this._stationLocation);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #28
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._requestingEntityID.Marshal(dos);
                    this._servicingEntityID.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._serviceTypeRequested);
                    dos.WriteUnsignedByte((byte)this._supplies.Count);
                    dos.WriteShort((short)this._serviceRequestPadding);

                    for (int idx = 0; idx < this._supplies.Count; idx++)
                    {
                        SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx];
                        aSupplyQuantity.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Пример #29
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteDouble((double)this._domainInitialXi);
                    dos.WriteDouble((double)this._domainFinalXi);
                    dos.WriteUnsignedShort((ushort)this._domainPointsXi);
                    dos.WriteUnsignedByte((byte)this._interleafFactor);
                    dos.WriteUnsignedByte((byte)this._axisType);
                    dos.WriteUnsignedShort((ushort)this._numberOfPointsOnXiAxis);
                    dos.WriteUnsignedShort((ushort)this._initialIndex);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Пример #30
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._entityID.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._forceId);
                    dos.WriteUnsignedByte((byte)this._variableParameters.Count);
                    this._entityType.Marshal(dos);
                    this._alternativeEntityType.Marshal(dos);
                    this._entityLinearVelocity.Marshal(dos);
                    this._entityLocation.Marshal(dos);
                    this._entityOrientation.Marshal(dos);
                    dos.WriteUnsignedInt((uint)this._entityAppearance);
                    this._deadReckoningParameters.Marshal(dos);
                    this._marking.Marshal(dos);
                    dos.WriteUnsignedInt((uint)this._capabilities);

                    for (int idx = 0; idx < this._variableParameters.Count; idx++)
                    {
                        VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx];
                        aVariableParameter.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }