objectClass[, objectName]) |
Returns an object handle.
May raise ObjectClassNotDefined, ObjectClassNotPublished, ObjectAlreadyRegistered, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.
object, objectClass, objectName) |
May raise CouldNotDiscover, ObjectClassNotKnown.
object, (attribute)) |
May raise ObjectNotKnown, AttributeNotOwned.
object, (attribute)) |
May raise ObjectNotKnown, AttributeNotOwned.
object, tag[, time]) |
Returns eventRetraction handle.
May raise ObjectNotKnown, DeletePrivilegeNotHeld, InvalidFederationTime, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.
object, tag[, time, eventRetraction]) |
May raise ObjectNotKnown, InvalidFederationTime.
object) |
May raise ObjectNotKnown, FederateOwnsAttributes, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.
object) |
May raise ObjectNotKnown, FederateNotExecutionMember, ConcurrentAccessAttempted.
objectName) |
May raise ObjectNotKnown, FederateNotExecutionMember, ConcurrentAccessAttempted.
object) |
May raise ObjectNotKnown, FederateNotExecutionMember, ConcurrentAccessAttempted.
transportationName) |
May raise NameNotFound, FederateNotExecutionMember, ConcurrentAccessAttempted.
transportation) |
May raise InvalidTransportationHandle, FederateNotExecutionMember, ConcurrentAccessAttempted.
object, (attribute), transportation) |
May raise ObjectNotKnown, AttributeNotDefined, AttributeNotOwned, InvalidTransportationHandle, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.
object, (attribute)) |
May raise ObjectNotKnown, AttributeNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.
objectClass, (attribute)) |
May raise ObjectClassNotDefined, AttributeNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.
object, (attribute)) |
May raise ObjectNotKnown, AttributeNotKnown, AttributeNotOwned.
object, {attribute:value}, tag[, time]) |
For example
rtia.updateAttributeValues(thisObject, {textAttributeHandle:"text"}, "update") rtia.updateAttributeValues(thisObject, {structAttributeHandle:struct.pack('hhl', 1, 2, 3)} "update") rtia.updateAttributeValues(thisObject, {wordLocationHandle:fom.WorldLocationStruct.pack({"X":1,"Y":2,"Z":3})}, "update") rtia.updateAttributeValues(thisObject, {textAttributeHandle:"text", structAttributeHandle:struct.pack('hhl', 1, 2, 3), wordLocationHandle:fom.WorldLocationStruct.pack({"X":1,"Y":2,"Z":3})}, "update")
Several methods may be used to encode the data before sending the update. The first one use text encoding, the second uses the python builtin struct encoding http://docs.python.org/library/struct.html and the last one uses the builtin PyHLA FOM encoding using IEEE-1516 standard encoding. The fom object used in this example is the result of something like:
import hla.omt as fom #Include RPR-FOM data types fom.HLAuse('rpr2-d18.xml')
import hla.omt as fom ... rtia.updateAttributeValues(thisObject, {attributeHandle:fom.HLAfloat32BE.pack(3.14)}, "update")
May raise ObjectNotKnown, AttributeNotDefined, AttributeNotOwned, InvalidFederationTime, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.
object, {attribute:value}, tag, orderType, transportType[, time, eventRetraction]) |
For example
def reflectAttributeValues(self, object, attributes, tag, order, transport): location, size = fom.WorldLocationStruct.unpack(attributes[self.wordLocationHandle]) print "REFLECT", location
May raise ObjectNotKnown, AttributeNotKnown, FederateOwnsAttributes, InvalidFederationTime.
parameterName, interactionClass) |
May raise InteractionClassNotDefined, NameNotFound, FederateNotExecutionMember, ConcurrentAccessAttempted.
parameter, interactionClass) |
May raise InteractionClassNotDefined, InteractionParameterNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted.
interactionClass, {parameter:value}, tag[, time]) |
Returns eventRetraction handle.
May raise InteractionClassNotDefined, InteractionClassNotPublished, InteractionParameterNotDefined, InvalidFederationTime, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.
interactionClass, {parameter:value}, tag, orderType, transportType[, time, eventRetraction]) |
May raise InteractionClassNotKnown, InteractionParameterNotKnown, InvalidFederationTime.
interactionClass, transportation) |
May raise InteractionClassNotDefined, InteractionClassNotPublished, InvalidTransportationHandle, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.