Exemplo n.º 1
0
 public void ReceiveInteraction(Sxta.Rti1516.Serializers.XrtiEncoding.BaseIteractionMessage msg)
 {
     message = msg;
     if (log.IsDebugEnabled)
         log.Debug("Received LastMessage =  " + msg.ToString());
     PulseMonitor();
 }
 /// <summary> 
 /// Constructor.
 /// </summary>
 /// <param name="pName">the name of the interaction class
 /// </param>
 /// <param name="pHandle">the handle of the interaction class
 /// </param>
 /// <param name="pParentDescriptors">the descriptors of the interaction class's parents
 /// </param>
 /// <param name="pDimensions">the dimensions associated with the interaction class
 /// </param>
 /// <param name="pTransportation">the transportation type of the interaction class
 /// </param>
 /// <param name="pOrder">the order type of the interaction class
 /// </param>
 public InteractionClassDescriptor(XmlElement interactionElement, IInteractionClassHandle pHandle, List<InteractionClassDescriptor> pParentDescriptors, IDimensionHandleSet pDimensions, TransportationType pTransportation, Sxta.Rti1516.Reflection.HLAorderType pOrder)
 {
     interactionClass = new Sxta.Rti1516.Reflection.HLAinteractionClass(interactionElement);
     handle = pHandle;
     parentDescriptors = pParentDescriptors;
     dimensions = pDimensions;
     transportation = pTransportation;
     order = pOrder;
 }
Exemplo n.º 3
0
        /// <remarks>
        /// Creates a new <code>IModule</code> object using  <code>ModuleNode</code>
        /// as a mark of which builder to take for creation.
        /// </remarks>
        public IModule CreateModule(Sxta.Core.Plugins.IPlugin plugin, XmlNode moduleNode)
        {
            //TODO TODO TODO.
            if (moduleNode.Attributes.Count >= 2 && moduleNode.Attributes["id"] != null && moduleNode.Attributes["class"] != null)
            {
                IModule module = (IModule)plugin.CreateObject(moduleNode.Attributes["class"].Value);

                if (module == null)
                {
                    ModuleBuilder builder = moduleHashtable[moduleNode.Name] as ModuleBuilder;
                    if (builder != null)
                    {
                        module = builder.BuildModule(plugin, moduleNode.Attributes["class"].Value);
                    }

                }
                return module;
            }

            throw new ModuleNotFoundException(String.Format("no Module builder found for <{0}>", moduleNode.Name));
        }
 /// <summary> 
 /// Constructor.
 /// </summary>
 /// <param name="interactClass">the info of the interaction class
 /// </param>
 /// <param name="pHandle">the handle of the interaction class
 /// </param>
 /// <param name="pParentDescriptors">the descriptors of the interaction class's parents
 /// </param>
 /// </param>
 public InteractionClassDescriptor(Sxta.Rti1516.Reflection.HLAinteractionClass interactClass, IInteractionClassHandle pHandle)
 {
     interactionClass = interactClass;
     handle = pHandle;
     parentDescriptors = new List<InteractionClassDescriptor>();
     dimensions = new XRTIDimensionHandleSet();
     transportation = "HLAreliable".Equals(interactClass.Transportation) ? TransportationType.HLA_RELIABLE : TransportationType.HLA_BEST_EFFORT;
     order = "Receive".Equals(interactClass.Order) ? Sxta.Rti1516.Reflection.HLAorderType.Receive : Sxta.Rti1516.Reflection.HLAorderType.TimeStamp;
 }
Exemplo n.º 5
0
 /// <summary> 
 /// Constructor.
 /// </summary>
 /// <param name="objClass">the object class description
 /// </param>
 /// <param name="pHandle">the handle of the object class
 /// </param>
 /// <param name="pParentDescriptors">the descriptors of the object class's parents
 /// </param>
 public ObjectClassDescriptor(Sxta.Rti1516.Reflection.HLAObjectClass objClass, IObjectClassHandle pHandle, List<ObjectClassDescriptor> pParentDescriptors)
 {
     objectDescription = objClass;
     handle = pHandle;
     parentDescriptors = pParentDescriptors;
 }
 void Sxta.Rti1516.XrtiUtils.IInteractionListener.ReceiveInteraction(Sxta.Rti1516.Serializers.XrtiEncoding.BaseInteractionMessage msg)
 {
     if (log.IsDebugEnabled)
         log.Debug("Received Message =  " + msg.ToString());
 }