예제 #1
0
 public override void OnReceiveHLArequestAttributeValueUpdate(HLArequestAttributeValueUpdateMessage msg)
 {
     if (log.IsDebugEnabled)
     {
         log.Debug("[" + federationName + "] Received HLArequestAttributeValueUpdate =  " + msg.ToString());
     }
 }
        ///<summary> Reads this HLArequestAttributeValueUpdateMessage from the specified stream.</summary>
        ///<param name="reader"> the input stream to read from</param>
        ///<returns> the object</returns>
        ///<exception cref="IOException"> if an error occurs</exception>
        public override object Deserialize(HlaEncodingReader reader, ref object msg2)
        {
            HLArequestAttributeValueUpdateMessage msg = new HLArequestAttributeValueUpdateMessage();
            msg.CopyTo((BaseInteractionMessage)msg2);

            try
            {
                msg.ObjectInstanceHandle = reader.ReadHLAinteger64BE();
                msg.AttributeHandleList = new long[reader.ReadHLAinteger32BE()];

                for (int i = 0; i < msg.AttributeHandleList.Length; i++)
                {
                    msg.AttributeHandleList[i] = reader.ReadHLAinteger64BE();
                }
            }
            catch (IOException ioe)
            {
                throw new RTIinternalError(ioe.ToString());
            }
            return msg;
        }
예제 #3
0
        ///<summary> Reads this HLArequestAttributeValueUpdateMessage from the specified stream.</summary>
        ///<param name="reader"> the input stream to read from</param>
        ///<returns> the object</returns>
        ///<exception cref="IOException"> if an error occurs</exception>
        public override object Deserialize(HlaEncodingReader reader, ref object msg2)
        {
            HLArequestAttributeValueUpdateMessage msg = new HLArequestAttributeValueUpdateMessage();

            msg.CopyTo((BaseInteractionMessage)msg2);

            try
            {
                msg.ObjectInstanceHandle = reader.ReadHLAinteger64BE();
                msg.AttributeHandleList  = new long[reader.ReadHLAinteger32BE()];

                for (int i = 0; i < msg.AttributeHandleList.Length; i++)
                {
                    msg.AttributeHandleList[i] = reader.ReadHLAinteger64BE();
                }
            }
            catch (IOException ioe)
            {
                throw new RTIinternalError(ioe.ToString());
            }
            return(msg);
        }
 public override void OnReceiveHLArequestAttributeValueUpdate(HLArequestAttributeValueUpdateMessage msg)
 {
     if (log.IsDebugEnabled)
         log.Debug("[" + federationName + "] Received HLArequestAttributeValueUpdate =  " + msg.ToString());
 }
 ///<summary>
 ///Requests an attribute value update. 
 ///</summary>
 ///<param name="msg"> the message associated with the interaction</param>
 ///<exception cref="InteractionClassNotRecognized"> if the interaction class was not recognized</exception>
 ///<exception cref="InteractionParameterNotRecognized"> if a parameter of the interaction was not
 /// recognized</exception>
 ///<exception cref="InteractionClassNotSubscribed"> if the federate had not subscribed to the
 /// interaction class</exception>
 ///<exception cref="FederateInternalError"> if an error occurs in the federate</exception>
 public abstract void OnReceiveHLArequestAttributeValueUpdate(HLArequestAttributeValueUpdateMessage msg);
예제 #6
0
 ///<summary>
 ///Requests an attribute value update.
 ///</summary>
 ///<param name="msg"> the message associated with the interaction</param>
 ///<exception cref="InteractionClassNotRecognized"> if the interaction class was not recognized</exception>
 ///<exception cref="InteractionParameterNotRecognized"> if a parameter of the interaction was not
 /// recognized</exception>
 ///<exception cref="InteractionClassNotSubscribed"> if the federate had not subscribed to the
 /// interaction class</exception>
 ///<exception cref="FederateInternalError"> if an error occurs in the federate</exception>
 public abstract void OnReceiveHLArequestAttributeValueUpdate(HLArequestAttributeValueUpdateMessage msg);