Example #1
0
 public override void OnReceiveHLAupdateAttributeValuesBestEffortWithTime(HLAupdateAttributeValuesBestEffortWithTimeMessage msg)
 {
     if (log.IsDebugEnabled)
     {
         log.Debug("[" + federationName + "] Received HLAupdateAttributeValuesBestEffortWithTimeMessage =  " + msg.ToString());
     }
 }
        ///<summary> Reads this HLAupdateAttributeValuesBestEffortWithTimeMessage 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)
        {
            HLAupdateAttributeValuesBestEffortWithTimeMessage decodedValue;

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

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

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

            return(decodedValue);
        }
        public override void OnReceiveHLAupdateAttributeValuesBestEffortWithTime(HLAupdateAttributeValuesBestEffortWithTimeMessage msg)
        {
            base.OnReceiveHLAupdateAttributeValuesBestEffortWithTime(msg);

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

            AddCallbackUpdateAttributeValues(msg.AttributeHandleValuePairList, msg.ObjectInstanceHandle, msg.UserSuppliedTag, msg.FederateHandle, msg.InteractionIndex, time);
        }
Example #4
0
        public override void OnReceiveHLAupdateAttributeValuesBestEffortWithTime(HLAupdateAttributeValuesBestEffortWithTimeMessage msg)
        {
            base.OnReceiveHLAupdateAttributeValuesBestEffortWithTime(msg);

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

            AddCallbackUpdateAttributeValues(msg.AttributeHandleValuePairList, msg.ObjectInstanceHandle, msg.UserSuppliedTag, msg.FederateHandle, msg.InteractionIndex, time);
        }
        ///<summary> Reads this HLAupdateAttributeValuesBestEffortWithTimeMessage 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)
        {
            HLAupdateAttributeValuesBestEffortWithTimeMessage decodedValue;
            if (!(msg is HLAupdateAttributeValuesBestEffortWithTimeMessage))
            {
                decodedValue = new HLAupdateAttributeValuesBestEffortWithTimeMessage();
                BaseInteractionMessage baseMsg = msg as BaseInteractionMessage;
                decodedValue.CopyTo(baseMsg);
                //decodedValue.InteractionClassHandle = baseMsg.InteractionClassHandle;
                //decodedValue.FederationExecutionHandle = baseMsg.FederationExecutionHandle;
                //decodedValue.UserSuppliedTag = baseMsg.UserSuppliedTag;
            }
            else
            {
                decodedValue = msg as HLAupdateAttributeValuesBestEffortWithTimeMessage;
            }
            object tmp = decodedValue;
            decodedValue = base.Deserialize(reader, ref tmp) as HLAupdateAttributeValuesBestEffortWithTimeMessage;

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

            return decodedValue;
        }
        public override void OnReceiveHLAupdateAttributeValuesBestEffortWithTime(HLAupdateAttributeValuesBestEffortWithTimeMessage msg)
        {
            base.OnReceiveHLAupdateAttributeValuesBestEffortWithTime(msg);

            ProcessHLAupdateAttributeValuesMetafederation(msg);
        }
 public override void OnReceiveHLAupdateAttributeValuesBestEffortWithTime(HLAupdateAttributeValuesBestEffortWithTimeMessage msg)
 {
     if (log.IsDebugEnabled)
         log.Debug("[" + federationName + "] Received HLAupdateAttributeValuesBestEffortWithTimeMessage =  " + msg.ToString());
 }
 ///<summary>
 ///Updates a set of attribute values with best-effort 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 OnReceiveHLAupdateAttributeValuesBestEffortWithTime(HLAupdateAttributeValuesBestEffortWithTimeMessage msg);
Example #9
0
        public override void OnReceiveHLAupdateAttributeValuesBestEffortWithTime(HLAupdateAttributeValuesBestEffortWithTimeMessage msg)
        {
            base.OnReceiveHLAupdateAttributeValuesBestEffortWithTime(msg);

            ProcessHLAupdateAttributeValuesMetafederation(msg);
        }
Example #10
0
 ///<summary>
 ///Updates a set of attribute values with best-effort 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 OnReceiveHLAupdateAttributeValuesBestEffortWithTime(HLAupdateAttributeValuesBestEffortWithTimeMessage msg);