public ProvideAttributeValueUpdateCallback(IFederateAmbassador federate, ILogicalTime time, IObjectInstanceHandle theObjectParam, IAttributeHandleSet theAttributesParam, byte[] userSuppliedTagParam) : base(federate, time) { this.theObject = theObjectParam; this.theAttributes = theAttributesParam; this.userSuppliedTag = userSuppliedTagParam; }
/// <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(); }
///<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()); } }
public virtual void AttributeOwnershipAcquisitionNotification(IObjectInstanceHandle theObject, IAttributeHandleSet securedAttributes, byte[] userSuppliedTag) { throw new Exception("The method or operation is not implemented."); }
public virtual void AttributeOwnershipUnavailable(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes) { throw new Exception("The method or operation is not implemented."); }
public virtual void RequestDivestitureConfirmation(IObjectInstanceHandle theObject, IAttributeHandleSet offeredAttributes) { throw new Exception("The method or operation is not implemented."); }
public virtual void TurnUpdatesOnForObjectInstance(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes) { throw new Exception("The method or operation is not implemented."); }
public virtual void ProvideAttributeValueUpdate(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes, byte[] userSuppliedTag) { throw new Exception("The method or operation is not implemented."); }
public virtual void RequestAttributeOwnershipRelease(IObjectInstanceHandle theObject, IAttributeHandleSet candidateAttributes, byte[] userSuppliedTag) { throw new Exception("The method or operation is not implemented."); }
public virtual void TurnUpdatesOffForObjectInstance(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes) { 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; }
public virtual void ConfirmAttributeOwnershipAcquisitionCancellation(IObjectInstanceHandle theObject, IAttributeHandleSet theAttributes) { throw new Exception("The method or operation is not implemented."); }