コード例 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="pDescriptorManager">the descriptor manager responsible for
        /// this descriptor
        /// </param>
        /// <param name="pName">the name of the attribute
        /// </param>
        /// <param name="pHandle">the handle of the attribute
        /// </param>
        /// <param name="pProxy">the proxy that corresponds to a remote object
        /// </param>
        public AttributeDescriptor(DescriptorManager pDescriptorManager, System.String pName, IAttributeHandle pHandle)
        {
            descriptorManager = pDescriptorManager;
            attribute.Name    = pName;
            handle            = pHandle;

            dimensions = new XRTIDimensionHandleSet();
        }
コード例 #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pName">the name of the attribute
 /// </param>
 /// <param name="pHandle">the handle of the attribute
 /// </param>
 /// <param name="pDimensions">the dimensions associated with the attribute
 /// </param>
 /// <param name="pTransportation">the transportation type of the attribute
 /// </param>
 /// <param name="pOrder">the order type of the attribute
 /// </param>
 public AttributeDescriptor(Sxta.Rti1516.Reflection.HLAattribute attributeInfo, IAttributeHandle pHandle, IDimensionHandleSet pDimensions)
 {
     attribute      = attributeInfo;
     handle         = pHandle;
     dimensions     = pDimensions;
     transportation = "HLAreliable".Equals(attributeInfo.Transportation) ? TransportationType.HLA_RELIABLE : TransportationType.HLA_BEST_EFFORT;
     order          = "Receive".Equals(attributeInfo.Order) ? OrderType.RECEIVE : OrderType.TIMESTAMP;
 }
コード例 #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pName">the name of the attribute
 /// </param>
 /// <param name="pHandle">the handle of the attribute
 /// </param>
 /// <param name="pDimensions">the dimensions associated with the attribute
 /// </param>
 /// <param name="pTransportation">the transportation type of the attribute
 /// </param>
 /// <param name="pOrder">the order type of the attribute
 /// </param>
 public AttributeDescriptor(XmlElement attributeElement, IAttributeHandle pHandle, IDimensionHandleSet pDimensions, TransportationType pTransportation, OrderType pOrder)
 {
     attribute      = new Sxta.Rti1516.Reflection.HLAattribute(attributeElement);
     handle         = pHandle;
     dimensions     = pDimensions;
     transportation = pTransportation;
     order          = pOrder;
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
 /// <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;
 }
コード例 #7
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="pHandle">the handle of the region
        /// </param>
        /// <param name="pDimensions">the dimensions of the region
        /// </param>
        public RegionDescriptor(IRegionHandle pHandle, IDimensionHandleSet pDimensions)
        {
            handle     = pHandle;
            dimensions = pDimensions;

            //UPGRADE_TODO: Class 'java.util.HashMap' was converted to 'System.Collections.Hashtable' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javautilHashMap_3"'
            dimensionRangeBoundsMap = new System.Collections.Hashtable();

            System.Collections.IEnumerator it = dimensions.GetEnumerator();

            //UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javautilIteratorhasNext_3"'
            while (it.MoveNext())
            {
                RangeBounds rb = new RangeBounds(System.Int64.MinValue, System.Int64.MaxValue);
                dimensionRangeBoundsMap[(IDimensionHandle)it.Current] = rb;
            }
        }
コード例 #8
0
 /// <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;
 }