///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 new public void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _issuingEntityID.marshal(dos);
         _collidingEntityID.marshal(dos);
         _collisionEventID.marshal(dos);
         dos.writeShort((short)_pad);
         _contactVelocity.marshal(dos);
         dos.writeFloat((float)_mass);
         _location.marshal(dos);
         dos.writeFloat((float)_collisionResultXX);
         dos.writeFloat((float)_collisionResultXY);
         dos.writeFloat((float)_collisionResultXZ);
         dos.writeFloat((float)_collisionResultYY);
         dos.writeFloat((float)_collisionResultYZ);
         dos.writeFloat((float)_collisionResultZZ);
         _unitSurfaceNormal.marshal(dos);
         dos.writeFloat((float)_coefficientOfRestitution);
     } // end try
     catch (Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 } // end of marshal method
///<summary>
///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _entityID.marshal(dos);
                dos.writeByte((byte)_forceId);
                dos.writeByte((byte)_articulationParameters.Count);
                _entityType.marshal(dos);
                _alternativeEntityType.marshal(dos);
                _entityLinearVelocity.marshal(dos);
                _entityLocation.marshal(dos);
                _entityOrientation.marshal(dos);
                dos.writeUint((uint)_entityAppearance);
                _deadReckoningParameters.marshal(dos);
                _marking.marshal(dos);
                dos.writeUint((uint)_capabilities);

                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx];
                    aArticulationParameter.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
///<summary>
///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _munitionID.marshal(dos);
                _eventID.marshal(dos);
                _velocity.marshal(dos);
                _locationInWorldCoordinates.marshal(dos);
                _burstDescriptor.marshal(dos);
                _locationInEntityCoordinates.marshal(dos);
                dos.writeByte((byte)_detonationResult);
                dos.writeByte((byte)_articulationParameters.Count);
                dos.writeShort((short)_pad);

                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx];
                    aArticulationParameter.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Exemple #4
0
 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
         _antennaLocation.marshal(dos);
         _relativeAntennaLocation.marshal(dos);
     } // end try
     catch (Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 } // end of marshal method
///<summary>
///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _emittingEntityId.marshal(dos);
                _eventID.marshal(dos);
                _location.marshal(dos);
                _systemID.marshal(dos);
                dos.writeUshort((ushort)_pad2);
                _fundamentalParameters.marshal(dos);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 new public void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _orginatingEntityID.marshal(dos);
         _receivingEntityID.marshal(dos);
         _relationship.marshal(dos);
         _partLocation.marshal(dos);
         _namedLocationID.marshal(dos);
         _partEntityType.marshal(dos);
     } // end try
     catch (Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 } // end of marshal method
Exemple #7
0
 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 new public void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _munitionID.marshal(dos);
         _eventID.marshal(dos);
         dos.writeUint((uint)_fireMissionIndex);
         _locationInWorldCoordinates.marshal(dos);
         _burstDescriptor.marshal(dos);
         _velocity.marshal(dos);
         dos.writeFloat((float)_range);
     } // end try
     catch (Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 } // end of marshal method
///<summary>
///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _radioEntityType.marshal(dos);
                dos.writeByte((byte)_transmitState);
                dos.writeByte((byte)_inputSource);
                dos.writeUshort((ushort)_padding1);
                _antennaLocation.marshal(dos);
                _relativeAntennaLocation.marshal(dos);
                dos.writeUshort((ushort)_antennaPatternType);
                dos.writeUshort((ushort)_antennaPatternList.Count);
                dos.writeUlong((ulong)_frequency);
                dos.writeFloat((float)_transmitFrequencyBandwidth);
                dos.writeFloat((float)_power);
                _modulationType.marshal(dos);
                dos.writeUshort((ushort)_cryptoSystem);
                dos.writeUshort((ushort)_cryptoKeyId);
                dos.writeByte((byte)_modulationParametersList.Count);
                dos.writeUshort((ushort)_padding2);
                dos.writeByte((byte)_padding3);

                for (int idx = 0; idx < _modulationParametersList.Count; idx++)
                {
                    Vector3Float aVector3Float = (Vector3Float)_modulationParametersList[idx];
                    aVector3Float.marshal(dos);
                } // end of list marshalling


                for (int idx = 0; idx < _antennaPatternList.Count; idx++)
                {
                    Vector3Float aVector3Float = (Vector3Float)_antennaPatternList[idx];
                    aVector3Float.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Exemple #9
0
        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public void marshal(DataOutputStream dos)
        {
            try
            {
                dos.writeByte((byte)_deadReckoningAlgorithm);

                for (int idx = 0; idx < _otherParameters.Length; idx++)
                {
                    dos.writeByte(_otherParameters[idx]);
                } // end of array marshaling

                _entityLinearAcceleration.marshal(dos);
                _entityAngularVelocity.marshal(dos);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
Exemple #10
0
///<summary>
///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _issuingEntityID.marshal(dos);
                _collidingEntityID.marshal(dos);
                _eventID.marshal(dos);
                dos.writeByte((byte)_collisionType);
                dos.writeByte((byte)_pad);
                _velocity.marshal(dos);
                dos.writeFloat((float)_mass);
                _location.marshal(dos);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
///<summary>
///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
///</summary>
        public void marshal(DataOutputStream dos)
        {
            try
            {
                dos.writeByte((byte)_emitterSystemDataLength);
                dos.writeByte((byte)_beamRecords.Count);
                dos.writeUshort((ushort)_pad2);
                _acousticEmitterSystem.marshal(dos);
                _emitterLocation.marshal(dos);

                for (int idx = 0; idx < _beamRecords.Count; idx++)
                {
                    AcousticBeamData aAcousticBeamData = (AcousticBeamData)_beamRecords[idx];
                    aAcousticBeamData.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public void marshal(DataOutputStream dos)
        {
            try
            {
                dos.writeByte((byte)_systemDataLength);
                dos.writeByte((byte)_beamDataRecords.Count);
                dos.writeUshort((ushort)_emissionsPadding2);
                _emitterSystem.marshal(dos);
                _location.marshal(dos);

                for (int idx = 0; idx < _beamDataRecords.Count; idx++)
                {
                    ElectronicEmissionBeamData aElectronicEmissionBeamData = (ElectronicEmissionBeamData)_beamDataRecords[idx];
                    aElectronicEmissionBeamData.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _minefieldID.marshal(dos);
                _requestingEntityID.marshal(dos);
                dos.writeUshort((ushort)_minefieldSequenceNumbeer);
                dos.writeByte((byte)_requestID);
                dos.writeByte((byte)_pduSequenceNumber);
                dos.writeByte((byte)_numberOfPdus);
                dos.writeByte((byte)_mineLocation.Count);
                dos.writeByte((byte)_sensorTypes.Count);
                dos.writeByte((byte)_pad2);
                dos.writeUint((uint)_dataFilter);
                _mineType.marshal(dos);

                for (int idx = 0; idx < _sensorTypes.Count; idx++)
                {
                    TwoByteChunk aTwoByteChunk = (TwoByteChunk)_sensorTypes[idx];
                    aTwoByteChunk.marshal(dos);
                } // end of list marshalling

                dos.writeByte((byte)_pad3);

                for (int idx = 0; idx < _mineLocation.Count; idx++)
                {
                    Vector3Float aVector3Float = (Vector3Float)_mineLocation[idx];
                    aVector3Float.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method
 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 new public void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _designatingEntityID.marshal(dos);
         dos.writeUshort((ushort)_codeName);
         _designatedEntityID.marshal(dos);
         dos.writeUshort((ushort)_designatorCode);
         dos.writeFloat((float)_designatorPower);
         dos.writeFloat((float)_designatorWavelength);
         _designatorSpotWrtDesignated.marshal(dos);
         _designatorSpotLocation.marshal(dos);
         dos.writeByte((byte)_deadReckoningAlgorithm);
         dos.writeUshort((ushort)_padding1);
         dos.writeByte((byte)_padding2);
         _entityLinearAcceleration.marshal(dos);
     } // end try
     catch (Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 } // end of marshal method
Exemple #15
0
///<summary>
///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _aggregateID.marshal(dos);
                dos.writeByte((byte)_forceID);
                dos.writeByte((byte)_aggregateState);
                _aggregateType.marshal(dos);
                dos.writeUint((uint)_formation);
                _aggregateMarking.marshal(dos);
                _dimensions.marshal(dos);
                _orientation.marshal(dos);
                _centerOfMass.marshal(dos);
                _velocity.marshal(dos);
                dos.writeUshort((ushort)_aggregateIDList.Count);
                dos.writeUshort((ushort)_entityIDList.Count);
                dos.writeUshort((ushort)_silentAggregateSystemList.Count);
                dos.writeUshort((ushort)_silentEntitySystemList.Count);

                for (int idx = 0; idx < _aggregateIDList.Count; idx++)
                {
                    AggregateID aAggregateID = (AggregateID)_aggregateIDList[idx];
                    aAggregateID.marshal(dos);
                } // end of list marshalling


                for (int idx = 0; idx < _entityIDList.Count; idx++)
                {
                    EntityID aEntityID = (EntityID)_entityIDList[idx];
                    aEntityID.marshal(dos);
                } // end of list marshalling

                dos.writeByte((byte)_pad2);

                for (int idx = 0; idx < _silentAggregateSystemList.Count; idx++)
                {
                    EntityType aEntityType = (EntityType)_silentAggregateSystemList[idx];
                    aEntityType.marshal(dos);
                } // end of list marshalling


                for (int idx = 0; idx < _silentEntitySystemList.Count; idx++)
                {
                    EntityType aEntityType = (EntityType)_silentEntitySystemList[idx];
                    aEntityType.marshal(dos);
                } // end of list marshalling

                dos.writeUint((uint)_variableDatumList.Count);

                for (int idx = 0; idx < _variableDatumList.Count; idx++)
                {
                    VariableDatum aVariableDatum = (VariableDatum)_variableDatumList[idx];
                    aVariableDatum.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method