Beispiel #1
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._emittingEntityID.Marshal(dos);
                    this._eventID.Marshal(dos);
                    dos.WriteByte((byte)this._stateChangeIndicator);
                    dos.WriteByte((byte)this._pad);
                    dos.WriteUnsignedShort((ushort)this._passiveParameterIndex);
                    dos.WriteUnsignedByte((byte)this._propulsionPlantConfiguration);
                    dos.WriteUnsignedByte((byte)this._shaftRPMs.Count);
                    dos.WriteUnsignedByte((byte)this._apaData.Count);
                    dos.WriteUnsignedByte((byte)this._emitterSystems.Count);

                    for (int idx = 0; idx < this._shaftRPMs.Count; idx++)
                    {
                        ShaftRPMs aShaftRPMs = (ShaftRPMs)this._shaftRPMs[idx];
                        aShaftRPMs.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._apaData.Count; idx++)
                    {
                        ApaData aApaData = (ApaData)this._apaData[idx];
                        aApaData.Marshal(dos);
                    }

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

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Beispiel #2
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    this._munitionType.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 DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        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._numberOfSystems);
                    dos.WriteUnsignedShort((ushort)this._emissionsPadding);
                    dos.WriteUnsignedByte((byte)this._systemDataLength);
                    dos.WriteUnsignedByte((byte)this._numberOfBeams);
                    dos.WriteUnsignedShort((ushort)this._emissionsPadding2);
                    this._emitterSystem.Marshal(dos);
                    this._location.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._beamDataLength);
                    dos.WriteUnsignedByte((byte)this._beamIdNumber);
                    dos.WriteUnsignedShort((ushort)this._beamParameterIndex);
                    this._fundamentalParameterData.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._munitionType.Marshal(dos);
                    this._shotStartTime.Marshal(dos);
                    dos.WriteFloat((float)this._commulativeShotTime);
                    this._ApertureEmitterLocation.Marshal(dos);
                    dos.WriteFloat((float)this._apertureDiameter);
                    dos.WriteFloat((float)this._wavelength);
                    dos.WriteFloat((float)this._peakIrradiance);
                    dos.WriteFloat((float)this._pulseRepetitionFrequency);
                    dos.WriteInt((int)this._pulseWidth);
                    dos.WriteInt((int)this._flags);
                    dos.WriteByte((byte)this._pulseShape);
                    dos.WriteUnsignedByte((byte)this._padding1);
                    dos.WriteUnsignedInt((uint)this._padding2);
                    dos.WriteUnsignedShort((ushort)this._padding3);
                    dos.WriteUnsignedShort((ushort)this._dERecords.Count);

                    for (int idx = 0; idx < this._dERecords.Count; idx++)
                    {
                        StandardVariableSpecification aStandardVariableSpecification = (StandardVariableSpecification)this._dERecords[idx];
                        aStandardVariableSpecification.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Beispiel #5
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);
                }
            }
        }
        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;
                    }
                }
            }
        }
Beispiel #7
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);
                }
            }
        }
        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._nomenclatureVersion);
                    dos.WriteUnsignedShort((ushort)this._nomenclature);
                }
                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.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 DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._minefieldID.Marshal(dos);
                    this._requestingEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._minefieldSequenceNumbeer);
                    dos.WriteUnsignedByte((byte)this._requestID);
                    dos.WriteUnsignedByte((byte)this._pduSequenceNumber);
                    dos.WriteUnsignedByte((byte)this._numberOfPdus);
                    dos.WriteUnsignedByte((byte)this._mineLocation.Count);
                    dos.WriteUnsignedByte((byte)this._sensorTypes.Count);
                    dos.WriteUnsignedByte((byte)this._pad2);
                    dos.WriteUnsignedInt((uint)this._dataFilter);
                    this._mineType.Marshal(dos);

                    for (int idx = 0; idx < this._sensorTypes.Count; idx++)
                    {
                        TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx];
                        aTwoByteChunk.Marshal(dos);
                    }

                    dos.WriteUnsignedByte((byte)this._pad3);

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

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Beispiel #11
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._originatingID.Marshal(dos);
                    this._receivingID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._acknowledgeFlag);
                    dos.WriteUnsignedShort((ushort)this._responseFlag);
                    dos.WriteUnsignedInt((uint)this._requestID);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    this._expendable.Marshal(dos);
                    dos.WriteUnsignedInt((uint)this._station);
                    dos.WriteUnsignedShort((ushort)this._standardQuantity);
                    dos.WriteUnsignedShort((ushort)this._maximumQuantity);
                    dos.WriteUnsignedInt((uint)this._standardQuantityReloadTime);
                    dos.WriteUnsignedInt((uint)this._maximumQuantityReloadTime);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Beispiel #13
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._activeEmissionParameterIndex);
                    dos.WriteUnsignedShort((ushort)this._scanPattern);
                    dos.WriteFloat((float)this._beamCenterAzimuthHorizontal);
                    dos.WriteFloat((float)this._azimuthalBeamwidthHorizontal);
                    dos.WriteFloat((float)this._beamCenterDepressionElevation);
                    dos.WriteFloat((float)this._beamwidthDownElevation);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Beispiel #14
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedByte((byte)this._sensorTypeSource);
                    dos.WriteUnsignedByte((byte)this._sensorOnOffStatus);
                    dos.WriteUnsignedShort((ushort)this._sensorType);
                    dos.WriteUnsignedInt((uint)this._station);
                    dos.WriteUnsignedShort((ushort)this._quantity);
                    dos.WriteUnsignedShort((ushort)this._padding);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Beispiel #15
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._receiverState);
                    dos.WriteUnsignedShort((ushort)this._padding1);
                    dos.WriteFloat((float)this._receivedPoser);
                    this._transmitterEntityId.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._transmitterRadioId);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Beispiel #16
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._designatingEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._codeName);
                    this._designatedEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._designatorCode);
                    dos.WriteFloat((float)this._designatorPower);
                    dos.WriteFloat((float)this._designatorWavelength);
                    this._designatorSpotWrtDesignated.Marshal(dos);
                    this._designatorSpotLocation.Marshal(dos);
                    dos.WriteByte((byte)this._deadReckoningAlgorithm);
                    dos.WriteUnsignedShort((ushort)this._padding1);
                    dos.WriteByte((byte)this._padding2);
                    this._entityLinearAcceleration.Marshal(dos);
                }
                catch (Exception e)
                {
                    if (PduBase.TraceExceptions)
                    {
                        Trace.WriteLine(e);
                        Trace.Flush();
                    }

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Beispiel #17
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._orginatingEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._infraredSignatureRepresentationIndex);
                    dos.WriteUnsignedShort((ushort)this._acousticSignatureRepresentationIndex);
                    dos.WriteUnsignedShort((ushort)this._radarCrossSectionSignatureRepresentationIndex);
                    dos.WriteUnsignedShort((ushort)this._propulsionSystemData.Count);
                    dos.WriteUnsignedShort((ushort)this._vectoringSystemData.Count);

                    for (int idx = 0; idx < this._propulsionSystemData.Count; idx++)
                    {
                        PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx];
                        aPropulsionSystemData.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._vectoringSystemData.Count; idx++)
                    {
                        VectoringNozzleSystemData aVectoringNozzleSystemData = (VectoringNozzleSystemData)this._vectoringSystemData[idx];
                        aVectoringNozzleSystemData.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    this._fireEventID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._padding);
                    this._firingEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._padding2);
                    this._targetEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._padding3);
                    this._targetLocation.Marshal(dos);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Beispiel #19
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);
                }
            }
        }
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._radioEntityType.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._transmitState);
                    dos.WriteUnsignedByte((byte)this._inputSource);
                    dos.WriteUnsignedShort((ushort)this._padding1);
                    this._antennaLocation.Marshal(dos);
                    this._relativeAntennaLocation.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._antennaPatternType);
                    dos.WriteUnsignedShort((ushort)this._antennaPatternList.Count);
                    dos.WriteDouble((double)this._frequency);
                    dos.WriteFloat((float)this._transmitFrequencyBandwidth);
                    dos.WriteFloat((float)this._power);
                    this._modulationType.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._cryptoSystem);
                    dos.WriteUnsignedShort((ushort)this._cryptoKeyId);
                    dos.WriteUnsignedByte((byte)this._modulationParametersList.Count);
                    dos.WriteUnsignedShort((ushort)this._padding2);
                    dos.WriteUnsignedByte((byte)this._padding3);

                    for (int idx = 0; idx < this._modulationParametersList.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx];
                        aVector3Float.Marshal(dos);
                    }

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

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Beispiel #21
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._emittingEntityID.Marshal(dos);
                    this._eventID.Marshal(dos);
                    dos.WriteByte((byte)this._stateChangeIndicator);
                    dos.WriteByte((byte)this._pad);
                    dos.WriteUnsignedShort((ushort)this._passiveParameterIndex);
                    dos.WriteUnsignedByte((byte)this._propulsionPlantConfiguration);
                    dos.WriteUnsignedByte((byte)this._shaftRPMs.Count);
                    dos.WriteUnsignedByte((byte)this._apaData.Count);
                    dos.WriteUnsignedByte((byte)this._emitterSystems.Count);

                    for (int idx = 0; idx < this._shaftRPMs.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._shaftRPMs[idx];
                        aVector3Float.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._apaData.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._apaData[idx];
                        aVector3Float.Marshal(dos);
                    }

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

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Beispiel #23
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._parameterIndex);
                    dos.WriteShort((short)this._parameterValue);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Beispiel #24
0
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    this._entityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._elementID);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    this._simulationAddress.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._referenceNumber);
                }
                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._liveSiteNumber);
                    dos.WriteUnsignedShort((ushort)this._liveApplicationNumber);
                }
                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.WriteUnsignedByte((byte)this._controlType);
                    dos.WriteUnsignedByte((byte)this._communicationsChannelType);
                    this._sourceEntityID.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._sourceCommunicationsDeviceID);
                    dos.WriteUnsignedByte((byte)this._sourceLineID);
                    dos.WriteUnsignedByte((byte)this._transmitPriority);
                    dos.WriteUnsignedByte((byte)this._transmitLineState);
                    dos.WriteUnsignedByte((byte)this._command);
                    this._masterEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._masterCommunicationsDeviceID);
                    dos.WriteUnsignedInt((uint)this._intercomParameters.Count);

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

                    this.RaiseExceptionOccured(e);

                    if (PduBase.ThrowExceptions)
                    {
                        throw e;
                    }
                }
            }
        }
Beispiel #28
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    dos.WriteUnsignedShort((ushort)this._dataValues.Length);
                    dos.WriteByte(this._dataValues);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    this._targetEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._padding);
                    dos.WriteFloat((float)this._peakIrradiance);
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Beispiel #30
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 DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }