Esempio n. 1
0
 public ProvideAttributeValueUpdateCallback(IFederateAmbassador federate, ILogicalTime time, IObjectInstanceHandle theObjectParam, IAttributeHandleSet theAttributesParam, byte[] userSuppliedTagParam)
     : base(federate, time)
 {
     this.theObject       = theObjectParam;
     this.theAttributes   = theAttributesParam;
     this.userSuppliedTag = userSuppliedTagParam;
 }
Esempio n. 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="pName">the name of the object instance
        /// </param>
        /// <param name="pHandle">the handle of the object instance
        /// </param>
        /// <param name="pClassHandle">the handle of the object instance class
        /// </param>
        public ObjectInstanceDescriptor(System.String pName, IObjectInstanceHandle pHandle, IObjectClassHandle pClassHandle, long pFederationHandle)
        {
            name        = pName;
            handle      = pHandle;
            classHandle = pClassHandle;
            federationExecutionHandle = pFederationHandle;

            ownedAttributes = new XRTIAttributeHandleSet();
        }
Esempio n. 3
0
        ///<summary> Writes this HLAsubscribeObjectClassAttributesMessage to the specified stream.</summary>
        ///<param name="writer"> the output stream to write to</param>
        ///<param name="obj"> the object to serialize</param>
        ///<exception cref="System.IO.IOException"> if an error occurs</exception>
        public override void Serialize(HlaEncodingWriter writer, object obj)
        {
            try
            {
                base.Serialize(writer, obj);

                IObjectClassHandle objectClass          = ((HLAsubscribeObjectClassAttributesMessage)obj).HLAobjectClass;
                byte[]             objectClassByteArray = new byte[objectClass.EncodedLength()];
                objectClass.Encode(objectClassByteArray, 0);

                writer.WriteHLAopaqueData(objectClassByteArray);

                IAttributeHandleSet attributeHandleSet = ((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList;
                writer.WriteHLAinteger32BE(attributeHandleSet.Count);

                foreach (IAttributeHandle attributeHandle in attributeHandleSet)
                {
                    byte[] attributeHandleByteArray = new byte[attributeHandle.EncodedLength()];
                    attributeHandle.Encode(attributeHandleByteArray, 0);

                    writer.WriteHLAopaqueData(attributeHandleByteArray);
                }

                writer.WriteHLAboolean(((HLAsubscribeObjectClassAttributesMessage)obj).HLAactive);

                /*
                 * writer.WriteHLAinteger32BE((((HLAsubscribeObjectClassAttributesMessage)obj).HLAobjectClass).Length);
                 *
                 * for (int i = 0; i < (((HLAsubscribeObjectClassAttributesMessage)obj).HLAobjectClass).Length; i++)
                 * {
                 *  writer.WriteHLAoctet((((HLAsubscribeObjectClassAttributesMessage)obj).HLAobjectClass)[i]);
                 * }
                 * writer.WriteHLAinteger32BE((((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList).Length);
                 *
                 * for (int i = 0; i < (((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList).Length; i++)
                 * {
                 *  writer.WriteHLAinteger32BE(((((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList)[i]).Length);
                 *
                 *  for (int j = 0; j < ((((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList)[i]).Length; j++)
                 *  {
                 *      writer.WriteHLAoctet(((((HLAsubscribeObjectClassAttributesMessage)obj).HLAattributeList)[i])[j]);
                 *  }
                 * }
                 * writer.WriteHLAboolean(((HLAsubscribeObjectClassAttributesMessage)obj).HLAactive);
                 */
            }
            catch (System.IO.IOException ioe)
            {
                throw new RTIinternalError(ioe.ToString());
            }
        }
Esempio n. 4
0
 public virtual void AttributeOwnershipAcquisitionNotification(IObjectInstanceHandle theObject, IAttributeHandleSet securedAttributes, byte[] userSuppliedTag)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 5
0
 public virtual void AttributeOwnershipUnavailable(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 6
0
 public virtual void RequestDivestitureConfirmation(IObjectInstanceHandle theObject, IAttributeHandleSet offeredAttributes)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 7
0
 public virtual void TurnUpdatesOnForObjectInstance(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 8
0
 public virtual void ProvideAttributeValueUpdate(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes, byte[] userSuppliedTag)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 9
0
 public virtual void RequestAttributeOwnershipRelease(IObjectInstanceHandle theObject, IAttributeHandleSet candidateAttributes, byte[] userSuppliedTag)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 10
0
 public virtual void TurnUpdatesOffForObjectInstance(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 11
0
 public virtual void AttributeOwnershipUnavailable(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 12
0
 public virtual void RequestDivestitureConfirmation(IObjectInstanceHandle theObject, IAttributeHandleSet offeredAttributes)
 {
     throw new Exception("The method or operation is not implemented.");
 }
 /// <summary> 
 /// Constructor.
 /// </summary>
 /// <param name="pAHset">the attribute set
 /// </param>
 /// <param name="pRHset">the region set
 /// </param>
 public AttributeRegionAssociation(IAttributeHandleSet pAHset, IRegionHandleSet pRHset)
 {
     ahset = pAHset;
     rhset = pRHset;
 }
Esempio n. 14
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pAHset">the attribute set
 /// </param>
 /// <param name="pRHset">the region set
 /// </param>
 public AttributeRegionAssociation(IAttributeHandleSet pAHset, IRegionHandleSet pRHset)
 {
     ahset = pAHset;
     rhset = pRHset;
 }
Esempio n. 15
0
 public virtual void ConfirmAttributeOwnershipAcquisitionCancellation(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 16
0
 public virtual void RequestAttributeOwnershipRelease(IObjectInstanceHandle theObject, IAttributeHandleSet candidateAttributes, byte[] userSuppliedTag)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 17
0
 public ProvideAttributeValueUpdateCallback(IFederateAmbassador federate, ILogicalTime time, IObjectInstanceHandle theObjectParam, IAttributeHandleSet theAttributesParam, byte[] userSuppliedTagParam)
     : base(federate, time)
 {
     this.theObject = theObjectParam;
     this.theAttributes = theAttributesParam;
     this.userSuppliedTag = userSuppliedTagParam;
 }
Esempio n. 18
0
 public virtual void ConfirmAttributeOwnershipAcquisitionCancellation(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 19
0
 public virtual void ProvideAttributeValueUpdate(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes, byte[] userSuppliedTag)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Esempio n. 20
0
 public virtual void AttributeOwnershipAcquisitionNotification(IObjectInstanceHandle theObject, IAttributeHandleSet securedAttributes, byte[] userSuppliedTag)
 {
     throw new Exception("The method or operation is not implemented.");
 }