コード例 #1
0
 public override void OnReceiveHLArequestHandles(HLArequestHandlesMessage msg)
 {
     if (log.IsDebugEnabled)
     {
         log.Debug("[" + federationName + "] Received HLArequestHandles =  " + msg.ToString());
     }
 }
コード例 #2
0
        ///<summary> Reads this HLArequestHandlesMessage 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)
        {
            HLArequestHandlesMessage msg = new HLArequestHandlesMessage();

            msg.CopyTo((BaseInteractionMessage)msg2);
            try
            {
                msg.BlockSize = reader.ReadHLAinteger64BE();
            }
            catch (IOException ioe)
            {
                throw new RTIinternalError(ioe.ToString());
            }
            return(msg);
        }
 public override void OnReceiveHLArequestHandles(HLArequestHandlesMessage msg)
 {
     if (log.IsDebugEnabled)
         log.Debug("[" + federationName + "] Received HLArequestHandles =  " + msg.ToString());
 }
 ///<summary>
 ///Requests a block of handles. 
 ///</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 OnReceiveHLArequestHandles(HLArequestHandlesMessage msg);
コード例 #5
0
 ///<summary> Reads this HLArequestHandlesMessage 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)
 {
     HLArequestHandlesMessage msg = new HLArequestHandlesMessage();
     msg.CopyTo((BaseInteractionMessage)msg2);
     try
     {
         msg.BlockSize = reader.ReadHLAinteger64BE();
     }
     catch (IOException ioe)
     {
         throw new RTIinternalError(ioe.ToString());
     }
     return msg;
 }
コード例 #6
0
 ///<summary>
 ///Requests a block of handles.
 ///</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 OnReceiveHLArequestHandles(HLArequestHandlesMessage msg);