Example #1
0
        } // end of marshal method

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

            try
            {
                _groupEntityID.unmarshal(dis);
                _groupedEntityCategory   = dis.readByte();
                _numberOfGroupedEntities = dis.readByte();
                _pad2      = dis.readUint();
                _latitude  = dis.readDouble();
                _longitude = dis.readDouble();
                for (int idx = 0; idx < _numberOfGroupedEntities; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _groupedEntityDescriptions.Add(anX);
                }
                ;
            } // 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
            {
                _requestID = dis.readUint();
                _padding1  = dis.readUint();
                _numberOfFixedDatumRecords    = dis.readUint();
                _numberOfVariableDatumRecords = dis.readUint();
                for (int idx = 0; idx < _numberOfFixedDatumRecords; idx++)
                {
                    FixedDatum anX = new FixedDatum();
                    anX.unmarshal(dis);
                    _fixedDatums.Add(anX);
                }
                ;

                for (int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _variableDatums.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Example #3
0
        } // end of marshal method

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

            try
            {
                _requiredReliabilityService = dis.readByte();
                _pad1         = dis.readUshort();
                _pad2         = dis.readByte();
                _requestID    = dis.readUint();
                _timeInterval = dis.readUint();
                _numberOfFixedDatumRecords    = dis.readUint();
                _numberOfVariableDatumRecords = dis.readUint();
                for (int idx = 0; idx < _numberOfFixedDatumRecords; idx++)
                {
                    FixedDatum anX = new FixedDatum();
                    anX.unmarshal(dis);
                    _fixedDatumRecords.Add(anX);
                }
                ;

                for (int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _variableDatumRecords.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
            {
               _requiredReliabilityService = dis.readByte();
               _pad1 = dis.readUshort();
               _pad2 = dis.readByte();
               _requestID = dis.readUint();
               _timeInterval = dis.readUint();
               _numberOfFixedDatumRecords = dis.readUint();
               _numberOfVariableDatumRecords = dis.readUint();
            for(int idx = 0; idx < _numberOfFixedDatumRecords; idx++)
            {
               FixedDatum anX = new FixedDatum();
            anX.unmarshal(dis);
            _fixedDatumRecords.Add(anX);
            };

            for(int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
            {
               VariableDatum anX = new VariableDatum();
            anX.unmarshal(dis);
            _variableDatumRecords.Add(anX);
            };

            } // end try
               catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
Example #5
0
        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _requestID = dis.readUint();
                _padding1 = dis.readUint();
                _numberOfFixedDatumRecords = dis.readUint();
                _numberOfVariableDatumRecords = dis.readUint();
                for(int idx = 0; idx < _numberOfFixedDatumRecords; idx++)
                {
                    FixedDatum anX = new FixedDatum();
                    anX.unmarshal(dis);
                    _fixedDatums.Add(anX);
                };

                for(int idx = 0; idx < _numberOfVariableDatumRecords; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _variableDatums.Add(anX);
                };

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
Example #6
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
            {
                _groupEntityID.unmarshal(dis);
                _groupedEntityCategory = dis.readByte();
                _numberOfGroupedEntities = dis.readByte();
                _pad2 = dis.readUint();
                _latitude = dis.readDouble();
                _longitude = dis.readDouble();
                for(int idx = 0; idx < _numberOfGroupedEntities; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _groupedEntityDescriptions.Add(anX);
                };

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