Exemplo n.º 1
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

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

            try
            {
                _fieldScale     = dis.readFloat();
                _fieldOffset    = dis.readFloat();
                _numberOfValues = dis.readUshort();
                for (int idx = 0; idx < _numberOfValues; idx++)
                {
                    TwoByteChunk anX = new TwoByteChunk();
                    anX.unmarshal(dis);
                    _dataValues.Add(anX);
                }
                ;
            } // 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
            {
                _minefieldID.unmarshal(dis);
                _requestingEntityID.unmarshal(dis);
                _requestID = dis.readByte();
                _numberOfPerimeterPoints = dis.readByte();
                _pad2 = dis.readByte();
                _numberOfSensorTypes = dis.readByte();
                _dataFilter          = dis.readUint();
                _requestedMineType.unmarshal(dis);
                for (int idx = 0; idx < _numberOfPerimeterPoints; idx++)
                {
                    Point anX = new Point();
                    anX.unmarshal(dis);
                    _requestedPerimeterPoints.Add(anX);
                }
                ;

                for (int idx = 0; idx < _numberOfSensorTypes; idx++)
                {
                    TwoByteChunk anX = new TwoByteChunk();
                    anX.unmarshal(dis);
                    _sensorTypes.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
            {
                _minefieldID.unmarshal(dis);
                _requestingEntityID.unmarshal(dis);
                _requestID = dis.readByte();
                _numberOfPerimeterPoints = dis.readByte();
                _pad2 = dis.readByte();
                _numberOfSensorTypes = dis.readByte();
                _dataFilter = dis.readUint();
                _requestedMineType.unmarshal(dis);
                for(int idx = 0; idx < _numberOfPerimeterPoints; idx++)
                {
                    Point anX = new Point();
                    anX.unmarshal(dis);
                    _requestedPerimeterPoints.Add(anX);
                };

                for(int idx = 0; idx < _numberOfSensorTypes; idx++)
                {
                    TwoByteChunk anX = new TwoByteChunk();
                    anX.unmarshal(dis);
                    _sensorTypes.Add(anX);
                };

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
        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();
            }
        }
        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _fieldScale = dis.readFloat();
                _fieldOffset = dis.readFloat();
                _numberOfValues = dis.readUshort();
                for(int idx = 0; idx < _numberOfValues; idx++)
                {
                    TwoByteChunk anX = new TwoByteChunk();
                    anX.unmarshal(dis);
                    _dataValues.Add(anX);
                };

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