///<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
     {
        _receivingEntityID.marshal(dos);
        _repairingEntityID.marshal(dos);
        dos.writeUshort((ushort)_repair);
        dos.writeShort((short)_padding2);
     } // 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
            {
                _requestingEntityID.marshal(dos);
                _servicingEntityID.marshal(dos);
                dos.writeByte((byte)_serviceTypeRequested);
                dos.writeByte((byte)_supplies.Count);
                dos.writeShort((short)_serviceRequestPadding);

                for(int idx = 0; idx < _supplies.Count; idx++)
                {
                    SupplyQuantity aSupplyQuantity = (SupplyQuantity)_supplies[idx];
                    aSupplyQuantity.marshal(dos);
                } // end of list marshalling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
Пример #3
0
 ///<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.writeUshort((ushort)_parameterIndex);
         dos.writeShort((short)_parameterValue);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
Пример #4
0
 ///<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.writeShort((short)_currentShaftRPMs);
         dos.writeShort((short)_orderedShaftRPMs);
         dos.writeFloat((float)_shaftRPMRateOfChange);
     } // 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
     {
         _issuingEntityID.marshal(dos);
         _collidingEntityID.marshal(dos);
         _collisionEventID.marshal(dos);
         dos.writeShort((short)_pad);
         _contactVelocity.marshal(dos);
         dos.writeFloat((float)_mass);
         _location.marshal(dos);
         dos.writeFloat((float)_collisionResultXX);
         dos.writeFloat((float)_collisionResultXY);
         dos.writeFloat((float)_collisionResultXZ);
         dos.writeFloat((float)_collisionResultYY);
         dos.writeFloat((float)_collisionResultYZ);
         dos.writeFloat((float)_collisionResultZZ);
         _unitSurfaceNormal.marshal(dos);
         dos.writeFloat((float)_coefficientOfRestitution);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
Пример #6
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
            {
                _munitionID.marshal(dos);
                _eventID.marshal(dos);
                _velocity.marshal(dos);
                _locationInWorldCoordinates.marshal(dos);
                _burstDescriptor.marshal(dos);
                _locationInEntityCoordinates.marshal(dos);
                dos.writeByte((byte)_detonationResult);
                dos.writeByte((byte)_articulationParameters.Count);
                dos.writeShort((short)_pad);

                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
     {
         _beamDirection.marshal(dos);
         dos.writeFloat((float)_azimuthBeamwidth);
         dos.writeFloat((float)_referenceSystem);
         dos.writeShort((short)_padding1);
         dos.writeByte((byte)_padding2);
         dos.writeFloat((float)_ez);
         dos.writeFloat((float)_ex);
         dos.writeFloat((float)_phase);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
Пример #8
0
 ///<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)_protocolVersion);
         dos.writeByte((byte)_exerciseID);
         dos.writeByte((byte)_pduType);
         dos.writeByte((byte)_protocolFamily);
         dos.writeUint((uint)_timestamp);
         dos.writeUshort((ushort)_length);
         dos.writeShort((short)_padding);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
Пример #9
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
     {
         dos.writeUshort((ushort)_encodingScheme);
         dos.writeUshort((ushort)_tdlType);
         dos.writeUint((uint)_sampleRate);
         dos.writeShort((short)((_dataLength == 0 && _data.Length > 0) ? _data.Length * 8 : _dataLength)); //09062009 Post processed.  If value is zero then default to every byte will use all 8 bits
         dos.writeShort((short)_samples);
         dos.writeByte (_data);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
Пример #10
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
     {
         _realWorldTime.marshal(dos);
         dos.writeByte((byte)_reason);
         dos.writeByte((byte)_frozenBehavior);
         dos.writeShort((short)_padding1);
         dos.writeUint((uint)_requestID);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }