/// <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; }
/// <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; }