Exemplo n.º 1
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _entityID.unmarshal(dis);
                _forceId = dis.readByte();
                _numberOfArticulationParameters = dis.readByte();
                _entityType.unmarshal(dis);
                _alternativeEntityType.unmarshal(dis);
                _entityLinearVelocity.unmarshal(dis);
                _entityLocation.unmarshal(dis);
                _entityOrientation.unmarshal(dis);
                _entityAppearance = dis.readUint();
                _deadReckoningParameters.unmarshal(dis);
                _marking.unmarshal(dis);
                _capabilities = dis.readUint();
                for (int idx = 0; idx < _numberOfArticulationParameters; idx++)
                {
                    ArticulationParameter anX = new ArticulationParameter();
                    anX.unmarshal(dis);
                    _articulationParameters.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 2
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _issuingEntityID.unmarshal(dis);
                _collidingEntityID.unmarshal(dis);
                _collisionEventID.unmarshal(dis);
                _pad = dis.readShort();
                _contactVelocity.unmarshal(dis);
                _mass = dis.readFloat();
                _location.unmarshal(dis);
                _collisionResultXX = dis.readFloat();
                _collisionResultXY = dis.readFloat();
                _collisionResultXZ = dis.readFloat();
                _collisionResultYY = dis.readFloat();
                _collisionResultYZ = dis.readFloat();
                _collisionResultZZ = dis.readFloat();
                _unitSurfaceNormal.unmarshal(dis);
                _coefficientOfRestitution = dis.readFloat();
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 3
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _designatingEntityID.unmarshal(dis);
                _codeName = dis.readUshort();
                _designatedEntityID.unmarshal(dis);
                _designatorCode       = dis.readUshort();
                _designatorPower      = dis.readFloat();
                _designatorWavelength = dis.readFloat();
                _designatorSpotWrtDesignated.unmarshal(dis);
                _designatorSpotLocation.unmarshal(dis);
                _deadReckoningAlgorithm = dis.readByte();
                _padding1 = dis.readUshort();
                _padding2 = dis.readByte();
                _entityLinearAcceleration.unmarshal(dis);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 4
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _munitionID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _velocity.unmarshal(dis);
                _locationInWorldCoordinates.unmarshal(dis);
                _burstDescriptor.unmarshal(dis);
                _locationInEntityCoordinates.unmarshal(dis);
                _detonationResult = dis.readByte();
                _numberOfArticulationParameters = dis.readByte();
                _pad = dis.readShort();
                for (int idx = 0; idx < _numberOfArticulationParameters; idx++)
                {
                    ArticulationParameter anX = new ArticulationParameter();
                    anX.unmarshal(dis);
                    _articulationParameters.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 5
0
        } // end of marshal method

        public void unmarshal(DataInputStream dis)
        {
            try
            {
                _antennaLocation.unmarshal(dis);
                _relativeAntennaLocation.unmarshal(dis);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 6
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _radioEntityType.unmarshal(dis);
                _transmitState = dis.readByte();
                _inputSource   = dis.readByte();
                _padding1      = dis.readUshort();
                _antennaLocation.unmarshal(dis);
                _relativeAntennaLocation.unmarshal(dis);
                _antennaPatternType         = dis.readUshort();
                _antennaPatternCount        = dis.readUshort();
                _frequency                  = dis.readUlong();
                _transmitFrequencyBandwidth = dis.readFloat();
                _power = dis.readFloat();
                _modulationType.unmarshal(dis);
                _cryptoSystem             = dis.readUshort();
                _cryptoKeyId              = dis.readUshort();
                _modulationParameterCount = dis.readByte();
                _padding2 = dis.readUshort();
                _padding3 = dis.readByte();
                for (int idx = 0; idx < _modulationParameterCount; idx++)
                {
                    Vector3Float anX = new Vector3Float();
                    anX.unmarshal(dis);
                    _modulationParametersList.Add(anX);
                }
                ;

                for (int idx = 0; idx < _antennaPatternCount; idx++)
                {
                    Vector3Float anX = new Vector3Float();
                    anX.unmarshal(dis);
                    _antennaPatternList.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 7
0
        } // end of marshal method

        public void unmarshal(DataInputStream dis)
        {
            try
            {
                _deadReckoningAlgorithm = dis.readByte();
                for (int idx = 0; idx < _otherParameters.Length; idx++)
                {
                    _otherParameters[idx] = dis.readByte();
                } // end of array unmarshaling
                _entityLinearAcceleration.unmarshal(dis);
                _entityAngularVelocity.unmarshal(dis);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _emittingEntityId.unmarshal(dis);
                _eventID.unmarshal(dis);
                _location.unmarshal(dis);
                _systemID.unmarshal(dis);
                _pad2 = dis.readUshort();
                _fundamentalParameters.unmarshal(dis);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 9
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _orginatingEntityID.unmarshal(dis);
                _receivingEntityID.unmarshal(dis);
                _relationship.unmarshal(dis);
                _partLocation.unmarshal(dis);
                _namedLocationID.unmarshal(dis);
                _partEntityType.unmarshal(dis);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 10
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _munitionID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _fireMissionIndex = dis.readUint();
                _locationInWorldCoordinates.unmarshal(dis);
                _burstDescriptor.unmarshal(dis);
                _velocity.unmarshal(dis);
                _range = dis.readFloat();
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 11
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _issuingEntityID.unmarshal(dis);
                _collidingEntityID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _collisionType = dis.readByte();
                _pad           = dis.readByte();
                _velocity.unmarshal(dis);
                _mass = dis.readFloat();
                _location.unmarshal(dis);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 12
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _minefieldID.unmarshal(dis);
                _requestingEntityID.unmarshal(dis);
                _minefieldSequenceNumbeer = dis.readUshort();
                _requestID              = dis.readByte();
                _pduSequenceNumber      = dis.readByte();
                _numberOfPdus           = dis.readByte();
                _numberOfMinesInThisPdu = dis.readByte();
                _numberOfSensorTypes    = dis.readByte();
                _pad2       = dis.readByte();
                _dataFilter = dis.readUint();
                _mineType.unmarshal(dis);
                for (int idx = 0; idx < _numberOfSensorTypes; idx++)
                {
                    TwoByteChunk anX = new TwoByteChunk();
                    anX.unmarshal(dis);
                    _sensorTypes.Add(anX);
                }
                ;

                _pad3 = dis.readByte();
                for (int idx = 0; idx < _numberOfMinesInThisPdu; idx++)
                {
                    Vector3Float anX = new Vector3Float();
                    anX.unmarshal(dis);
                    _mineLocation.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
        } // end of marshal method

        public void unmarshal(DataInputStream dis)
        {
            try
            {
                _emitterSystemDataLength = dis.readByte();
                _numberOfBeams           = dis.readByte();
                _pad2 = dis.readUshort();
                _acousticEmitterSystem.unmarshal(dis);
                _emitterLocation.unmarshal(dis);
                for (int idx = 0; idx < _numberOfBeams; idx++)
                {
                    AcousticBeamData anX = new AcousticBeamData();
                    anX.unmarshal(dis);
                    _beamRecords.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
        } // end of marshal method

        public void unmarshal(DataInputStream dis)
        {
            try
            {
                _systemDataLength  = dis.readByte();
                _numberOfBeams     = dis.readByte();
                _emissionsPadding2 = dis.readUshort();
                _emitterSystem.unmarshal(dis);
                _location.unmarshal(dis);
                for (int idx = 0; idx < _numberOfBeams; idx++)
                {
                    ElectronicEmissionBeamData anX = new ElectronicEmissionBeamData();
                    anX.unmarshal(dis);
                    _beamDataRecords.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 15
0
        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _radioEntityType.unmarshal(dis);
                _transmitState = dis.readByte();
                _inputSource = dis.readByte();
                _padding1 = dis.readUshort();
                _antennaLocation.unmarshal(dis);
                _relativeAntennaLocation.unmarshal(dis);
                _antennaPatternType = dis.readUshort();
                _antennaPatternCount = dis.readUshort();
                _frequency = dis.readUlong();
                _transmitFrequencyBandwidth = dis.readFloat();
                _power = dis.readFloat();
                _modulationType.unmarshal(dis);
                _cryptoSystem = dis.readUshort();
                _cryptoKeyId = dis.readUshort();
                _modulationParameterCount = dis.readByte();
                _padding2 = dis.readUshort();
                _padding3 = dis.readByte();
                for(int idx = 0; idx < _modulationParameterCount; idx++)
                {
                    Vector3Float anX = new Vector3Float();
                    anX.unmarshal(dis);
                    _modulationParametersList.Add(anX);
                };

                for(int idx = 0; idx < _antennaPatternCount; idx++)
                {
                    Vector3Float anX = new Vector3Float();
                    anX.unmarshal(dis);
                    _antennaPatternList.Add(anX);
                };

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
Exemplo n.º 16
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _aggregateID.unmarshal(dis);
                _forceID        = dis.readByte();
                _aggregateState = dis.readByte();
                _aggregateType.unmarshal(dis);
                _formation = dis.readUint();
                _aggregateMarking.unmarshal(dis);
                _dimensions.unmarshal(dis);
                _orientation.unmarshal(dis);
                _centerOfMass.unmarshal(dis);
                _velocity.unmarshal(dis);
                _numberOfDisAggregates        = dis.readUshort();
                _numberOfDisEntities          = dis.readUshort();
                _numberOfSilentAggregateTypes = dis.readUshort();
                _numberOfSilentEntityTypes    = dis.readUshort();
                for (int idx = 0; idx < _numberOfDisAggregates; idx++)
                {
                    AggregateID anX = new AggregateID();
                    anX.unmarshal(dis);
                    _aggregateIDList.Add(anX);
                }
                ;

                for (int idx = 0; idx < _numberOfDisEntities; idx++)
                {
                    EntityID anX = new EntityID();
                    anX.unmarshal(dis);
                    _entityIDList.Add(anX);
                }
                ;

                _pad2 = dis.readByte();
                for (int idx = 0; idx < _numberOfSilentAggregateTypes; idx++)
                {
                    EntityType anX = new EntityType();
                    anX.unmarshal(dis);
                    _silentAggregateSystemList.Add(anX);
                }
                ;

                for (int idx = 0; idx < _numberOfSilentEntityTypes; idx++)
                {
                    EntityType anX = new EntityType();
                    anX.unmarshal(dis);
                    _silentEntitySystemList.Add(anX);
                }
                ;

                _numberOfVariableDatumRecords = dis.readUint();
                for (int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _variableDatumList.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 17
0
        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _minefieldID.unmarshal(dis);
                _requestingEntityID.unmarshal(dis);
                _minefieldSequenceNumbeer = dis.readUshort();
                _requestID = dis.readByte();
                _pduSequenceNumber = dis.readByte();
                _numberOfPdus = dis.readByte();
                _numberOfMinesInThisPdu = dis.readByte();
                _numberOfSensorTypes = dis.readByte();
                _pad2 = dis.readByte();
                _dataFilter = dis.readUint();
                _mineType.unmarshal(dis);
                for(int idx = 0; idx < _numberOfSensorTypes; idx++)
                {
                    TwoByteChunk anX = new TwoByteChunk();
                    anX.unmarshal(dis);
                    _sensorTypes.Add(anX);
                };

                _pad3 = dis.readByte();
                for(int idx = 0; idx < _numberOfMinesInThisPdu; idx++)
                {
                    Vector3Float anX = new Vector3Float();
                    anX.unmarshal(dis);
                    _mineLocation.Add(anX);
                };

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }