Example #1
0
        } // end of marshal method

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

            try
            {
                _objectID.unmarshal(dis);
                _referencedObjectID.unmarshal(dis);
                _updateNumber  = dis.readUshort();
                _forceID       = dis.readByte();
                _modifications = dis.readByte();
                _objectType.unmarshal(dis);
                _objectLocation.unmarshal(dis);
                _objectOrientation.unmarshal(dis);
                _objectAppearance = dis.readDouble();
                _requesterID.unmarshal(dis);
                _receivingID.unmarshal(dis);
                _pad2 = dis.readUint();
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Example #2
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
        } // end of marshal method

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

            try
            {
                _objectID.unmarshal(dis);
                _referencedObjectID.unmarshal(dis);
                _updateNumber  = dis.readUshort();
                _forceID       = dis.readByte();
                _modifications = dis.readByte();
                _objectType.unmarshal(dis);
                _objectAppearance.unmarshal(dis);
                _numberOfPoints = dis.readUshort();
                _requesterID.unmarshal(dis);
                _receivingID.unmarshal(dis);
                for (int idx = 0; idx < _numberOfPoints; idx++)
                {
                    Vector3Double anX = new Vector3Double();
                    anX.unmarshal(dis);
                    _objectLocation.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Example #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
Example #5
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
Example #6
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
Example #7
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
Example #8
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
Example #9
0
        } // end of marshal method

        public void unmarshal(DataInputStream dis)
        {
            try
            {
                _segmentNumber = dis.readByte();
                _segmentAppearance.unmarshal(dis);
                _location.unmarshal(dis);
                _orientation.unmarshal(dis);
                _segmentLength = dis.readUshort();
                _segmentWidth  = dis.readUshort();
                _segmentHeight = dis.readUshort();
                _segmentDepth  = dis.readUshort();
                _pad1          = dis.readUint();
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Example #10
0
        } // end of marshal method

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

            try
            {
                _minefieldID.unmarshal(dis);
                _minefieldSequence       = dis.readUshort();
                _forceID                 = dis.readByte();
                _numberOfPerimeterPoints = dis.readByte();
                _minefieldType.unmarshal(dis);
                _numberOfMineTypes = dis.readUshort();
                _minefieldLocation.unmarshal(dis);
                _minefieldOrientation.unmarshal(dis);
                _appearance   = dis.readUshort();
                _protocolMode = dis.readUshort();
                for (int idx = 0; idx < _numberOfPerimeterPoints; idx++)
                {
                    Point anX = new Point();
                    anX.unmarshal(dis);
                    _perimeterPoints.Add(anX);
                }
                ;

                for (int idx = 0; idx < _numberOfMineTypes; idx++)
                {
                    EntityType anX = new EntityType();
                    anX.unmarshal(dis);
                    _mineType.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Example #11
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
        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
               _objectID.unmarshal(dis);
               _referencedObjectID.unmarshal(dis);
               _updateNumber = dis.readUshort();
               _forceID = dis.readByte();
               _modifications = dis.readByte();
               _objectType.unmarshal(dis);
               _objectAppearance.unmarshal(dis);
               _numberOfPoints = dis.readUshort();
               _requesterID.unmarshal(dis);
               _receivingID.unmarshal(dis);
            for(int idx = 0; idx < _numberOfPoints; idx++)
            {
               Vector3Double anX = new Vector3Double();
            anX.unmarshal(dis);
            _objectLocation.Add(anX);
            };

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