Ejemplo n.º 1
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 (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._layerNumber);
                    dos.WriteUnsignedByte((byte)this._layerSpecificInformaiton);
                    dos.WriteUnsignedShort((ushort)this._length);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 3
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._systemStatus);
                    dos.WriteUnsignedByte((byte)this._alternateParameter4);
                    dos.WriteUnsignedByte((byte)this._informationLayers);
                    dos.WriteUnsignedByte((byte)this._modifier);
                    dos.WriteUnsignedShort((ushort)this._parameter1);
                    dos.WriteUnsignedShort((ushort)this._parameter2);
                    dos.WriteUnsignedShort((ushort)this._parameter3);
                    dos.WriteUnsignedShort((ushort)this._parameter4);
                    dos.WriteUnsignedShort((ushort)this._parameter5);
                    dos.WriteUnsignedShort((ushort)this._parameter6);
                }
                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.WriteUnsignedShort((ushort)this._activeEmissionParameterIndex);
                    dos.WriteUnsignedShort((ushort)this._scanPattern);
                    dos.WriteFloat((float)this._beamCenterAzimuth);
                    dos.WriteFloat((float)this._azimuthalBeamwidth);
                    dos.WriteFloat((float)this._beamCenterDE);
                    dos.WriteFloat((float)this._deBeamwidth);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 5
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._nature);
                    dos.WriteUnsignedShort((ushort)this._position);
                }
                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.WriteFloat((float)this._erp);
                    dos.WriteFloat((float)this._frequency);
                    dos.WriteFloat((float)this._pgrf);
                    dos.WriteFloat((float)this._pulseWidth);
                    dos.WriteUnsignedInt((uint)this._burstLength);
                    dos.WriteUnsignedByte((byte)this._applicableModes);
                    dos.WriteUnsignedShort((ushort)this._pad2);
                    dos.WriteUnsignedByte((byte)this._pad3);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 7
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedInt((uint)this._recordID);
                    dos.WriteUnsignedInt((uint)this._recordSetSerialNumber);
                    dos.WriteUnsignedShort((ushort)this._recordLength);
                    dos.WriteUnsignedShort((ushort)this._recordCount);
                    dos.WriteUnsignedShort((ushort)this._recordValues);
                    dos.WriteUnsignedByte((byte)this._pad4);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 8
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._spreadSpectrum);
                    dos.WriteUnsignedShort((ushort)this._major);
                    dos.WriteUnsignedShort((ushort)this._detail);
                    dos.WriteUnsignedShort((ushort)this._system);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 9
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._beamDataLength);
                    dos.WriteUnsignedByte((byte)this._beamIDNumber);
                    dos.WriteUnsignedShort((ushort)this._pad2);
                    this._fundamentalDataParameters.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.WriteUnsignedShort((ushort)this._recordType);
                    dos.WriteUnsignedShort((ushort)this._recordLength);
                    dos.WriteUnsignedInt((uint)this._recordSpecificField);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 11
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.WriteUnsignedShort((ushort)this._length);
                    dos.WriteShort((short)this._padding);
                }
                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._systemDataLength);
                    dos.WriteUnsignedByte((byte)this._beamDataRecords.Count);
                    dos.WriteUnsignedShort((ushort)this._emissionsPadding2);
                    this._emitterSystem.Marshal(dos);
                    this._location.Marshal(dos);

                    for (int idx = 0; idx < this._beamDataRecords.Count; idx++)
                    {
                        ElectronicEmissionBeamData aElectronicEmissionBeamData = (ElectronicEmissionBeamData)this._beamDataRecords[idx];
                        aElectronicEmissionBeamData.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._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 (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 14
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._parameterTypeDesignator);
                    dos.WriteUnsignedByte((byte)this._changeIndicator);
                    dos.WriteUnsignedShort((ushort)this._partAttachedTo);
                    dos.WriteInt((int)this._parameterType);
                    dos.WriteDouble((double)this._parameterValue);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 15
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._systemType);
                    dos.WriteUnsignedShort((ushort)this._systemName);
                    dos.WriteUnsignedByte((byte)this._systemMode);
                    dos.WriteUnsignedByte((byte)this._changeOptions);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 16
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    this._munition.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._warhead);
                    dos.WriteUnsignedShort((ushort)this._fuse);
                    dos.WriteUnsignedShort((ushort)this._quantity);
                    dos.WriteUnsignedShort((ushort)this._rate);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 17
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._acousticName);
                    dos.WriteUnsignedByte((byte)this._function);
                    dos.WriteUnsignedByte((byte)this._acousticIdNumber);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Ejemplo n.º 18
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._segmentNumber);
                    this._segmentAppearance.Marshal(dos);
                    this._location.Marshal(dos);
                    this._orientation.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._segmentLength);
                    dos.WriteUnsignedShort((ushort)this._segmentWidth);
                    dos.WriteUnsignedShort((ushort)this._segmentHeight);
                    dos.WriteUnsignedShort((ushort)this._segmentDepth);
                    dos.WriteUnsignedInt((uint)this._pad1);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }