///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
        _objectID.marshal(dos);
        _referencedObjectID.marshal(dos);
        dos.writeUshort((ushort)_updateNumber);
        dos.writeByte((byte)_forceID);
        dos.writeByte((byte)_modifications);
        _objectType.marshal(dos);
        _objectLocation.marshal(dos);
        _objectOrientation.marshal(dos);
        dos.writeDouble((double)_objectAppearance);
        _requesterID.marshal(dos);
        _receivingID.marshal(dos);
        dos.writeUint((uint)_pad2);
     } // end try
     catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
Esempio n. 2
0
        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _groupEntityID.marshal(dos);
                dos.writeByte((byte)_groupedEntityCategory);
                dos.writeByte((byte)_groupedEntityDescriptions.Count);
                dos.writeUint((uint)_pad2);
                dos.writeDouble((double)_latitude);
                dos.writeDouble((double)_longitude);

                for(int idx = 0; idx < _groupedEntityDescriptions.Count; idx++)
                {
                    VariableDatum aVariableDatum = (VariableDatum)_groupedEntityDescriptions[idx];
                    aVariableDatum.marshal(dos);
                } // end of list marshalling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
               dos.writeUshort((ushort)_site);
               dos.writeUshort((ushort)_application);
               dos.writeUshort((ushort)_entity);
               dos.writeByte((byte)_forceId);
               dos.writeByte((byte)_articulationParameters.Count);
               dos.writeByte((byte)_entityKind);
               dos.writeByte((byte)_domain);
               dos.writeUshort((ushort)_country);
               dos.writeByte((byte)_category);
               dos.writeByte((byte)_subcategory);
               dos.writeByte((byte)_specific);
               dos.writeByte((byte)_extra);
               dos.writeByte((byte)_altEntityKind);
               dos.writeByte((byte)_altDomain);
               dos.writeUshort((ushort)_altCountry);
               dos.writeByte((byte)_altCategory);
               dos.writeByte((byte)_altSubcategory);
               dos.writeByte((byte)_altSpecific);
               dos.writeByte((byte)_altExtra);
               dos.writeFloat((float)_xVelocity);
               dos.writeFloat((float)_yVelocity);
               dos.writeFloat((float)_zVelocity);
               dos.writeDouble((double)_xLocation);
               dos.writeDouble((double)_yLocation);
               dos.writeDouble((double)_zLocation);
               dos.writeFloat((float)_psi);
               dos.writeFloat((float)_theta);
               dos.writeFloat((float)_phi);
               dos.writeUint((uint)_entityAppearance);
               dos.writeByte((byte)_deadReckoningAlgorithm);

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

               dos.writeFloat((float)_xAcceleration);
               dos.writeFloat((float)_yAcceleration);
               dos.writeFloat((float)_zAcceleration);
               dos.writeFloat((float)_xAngularVelocity);
               dos.writeFloat((float)_yAngularVelocity);
               dos.writeFloat((float)_zAngularVelocity);

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

               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();
            }
        }
 ///<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)_parameterTypeDesignator);
         dos.writeByte((byte)_changeIndicator);
         dos.writeUshort((ushort)_partAttachedTo);
         dos.writeUint((uint)_parameterType);
         dos.writeDouble((double)_parameterValue);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
 ///<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.writeDouble((double)_x);
        dos.writeDouble((double)_y);
        dos.writeDouble((double)_z);
     } // end try
     catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }