Exemplo n.º 1
0
 public override void OnReceiveHLAupdateAttributeValuesReliableWithTime(HLAupdateAttributeValuesReliableWithTimeMessage msg)
 {
     if (log.IsDebugEnabled)
     {
         log.Debug("[" + federationName + "] Received HLAupdateAttributeValuesReliableWithTimeMessage =  " + msg.ToString());
     }
 }
        ///<summary> Reads this HLAupdateAttributeValuesReliableWithTimeMessage from the specified stream.</summary>
        ///<param name="reader"> the input stream to read from</param>
        ///<returns> the object</returns>
        ///<exception cref="System.IO.IOException"> if an error occurs</exception>
        public override object Deserialize(HlaEncodingReader reader, ref object msg)
        {
            HLAupdateAttributeValuesReliableWithTimeMessage decodedValue;

            if (!(msg is HLAupdateAttributeValuesReliableWithTimeMessage))
            {
                decodedValue = new HLAupdateAttributeValuesReliableWithTimeMessage();
                BaseInteractionMessage baseMsg = msg as BaseInteractionMessage;
                decodedValue.CopyTo(baseMsg);
                //decodedValue.InteractionClassHandle = baseMsg.InteractionClassHandle;
                //decodedValue.FederationExecutionHandle = baseMsg.FederationExecutionHandle;
                //decodedValue.UserSuppliedTag = baseMsg.UserSuppliedTag;
            }
            else
            {
                decodedValue = msg as HLAupdateAttributeValuesReliableWithTimeMessage;
            }
            object tmp = decodedValue;

            decodedValue = base.Deserialize(reader, ref tmp) as HLAupdateAttributeValuesReliableWithTimeMessage;

            //decodedValue.LogicalTime = reader.ReadHLAopaqueData();

            return(decodedValue);
        }
        public override void OnReceiveHLAupdateAttributeValuesReliableWithTime(HLAupdateAttributeValuesReliableWithTimeMessage msg)
        {
            base.OnReceiveHLAupdateAttributeValuesReliableWithTime(msg);

            ILogicalTime time = parent.LogicalTimeFactory.Decode(msg.LogicalTime, 0);

            AddCallbackUpdateAttributeValues(msg.AttributeHandleValuePairList, msg.ObjectInstanceHandle, msg.UserSuppliedTag, msg.FederateHandle, msg.InteractionIndex, time);
        }
Exemplo n.º 4
0
        public override void OnReceiveHLAupdateAttributeValuesReliableWithTime(HLAupdateAttributeValuesReliableWithTimeMessage msg)
        {
            base.OnReceiveHLAupdateAttributeValuesReliableWithTime(msg);

            ILogicalTime time = parent.LogicalTimeFactory.Decode(msg.LogicalTime, 0);

            AddCallbackUpdateAttributeValues(msg.AttributeHandleValuePairList, msg.ObjectInstanceHandle, msg.UserSuppliedTag, msg.FederateHandle, msg.InteractionIndex, time);
        }
        ///<summary> Reads this HLAupdateAttributeValuesReliableWithTimeMessage from the specified stream.</summary>
        ///<param name="reader"> the input stream to read from</param>
        ///<returns> the object</returns>
        ///<exception cref="System.IO.IOException"> if an error occurs</exception>
        public override object Deserialize(HlaEncodingReader reader, ref object msg)
        {
            HLAupdateAttributeValuesReliableWithTimeMessage decodedValue;
            if (!(msg is HLAupdateAttributeValuesReliableWithTimeMessage))
            {
                decodedValue = new HLAupdateAttributeValuesReliableWithTimeMessage();
                BaseInteractionMessage baseMsg = msg as BaseInteractionMessage;
                decodedValue.CopyTo(baseMsg);
                //decodedValue.InteractionClassHandle = baseMsg.InteractionClassHandle;
                //decodedValue.FederationExecutionHandle = baseMsg.FederationExecutionHandle;
                //decodedValue.UserSuppliedTag = baseMsg.UserSuppliedTag;
            }
            else
            {
                decodedValue = msg as HLAupdateAttributeValuesReliableWithTimeMessage;
            }
            object tmp = decodedValue;
            decodedValue = base.Deserialize(reader, ref tmp) as HLAupdateAttributeValuesReliableWithTimeMessage;

            //decodedValue.LogicalTime = reader.ReadHLAopaqueData();

            return decodedValue;
        }
        public override void OnReceiveHLAupdateAttributeValuesReliableWithTime(HLAupdateAttributeValuesReliableWithTimeMessage msg)
        {
            base.OnReceiveHLAupdateAttributeValuesReliableWithTime(msg);

            ProcessHLAupdateAttributeValuesMetafederation(msg);
        }
 public override void OnReceiveHLAupdateAttributeValuesReliableWithTime(HLAupdateAttributeValuesReliableWithTimeMessage msg)
 {
     if (log.IsDebugEnabled)
         log.Debug("[" + federationName + "] Received HLAupdateAttributeValuesReliableWithTimeMessage =  " + msg.ToString());
 }
 ///<summary>
 ///Updates a set of attribute values with reliable transportation and
 ///receive ordering. 
 ///</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 OnReceiveHLAupdateAttributeValuesReliableWithTime(HLAupdateAttributeValuesReliableWithTimeMessage msg);
Exemplo n.º 9
0
        public override void OnReceiveHLAupdateAttributeValuesReliableWithTime(HLAupdateAttributeValuesReliableWithTimeMessage msg)
        {
            base.OnReceiveHLAupdateAttributeValuesReliableWithTime(msg);

            ProcessHLAupdateAttributeValuesMetafederation(msg);
        }
Exemplo n.º 10
0
 ///<summary>
 ///Updates a set of attribute values with reliable transportation and
 ///receive ordering.
 ///</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 OnReceiveHLAupdateAttributeValuesReliableWithTime(HLAupdateAttributeValuesReliableWithTimeMessage msg);