Subsections

2.1.2 Declaration Management

2.1.2.1 Object Declaration

\begin{figure}\centering
\pagecolor{white}
\begin{msc}{Object Declaration}
\draw...
...ublishObjectClass}{m1}{m2}
\nextlevel
\end{msc}\textcolor{white}{.} \end{figure}

getObjectClassHandle( objectName)
Returns object class handle.

For example

aircraftHandle = rtia.getObjectClassHandle("Aircraft")

May raise NameNotFound, FederateNotExecutionMember, ConcurrentAccessAttempted.

getObjectClassName( objectClass)
Returns object class name.

May raise ObjectClassNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted.

getAttributeHandle( attributeName, objectClass)
Returns class attribute handle.

For example

aircraftHandle = rtia.getObjectClassHandle("Aircraft")
wordLocationHandle = rtia.getAttributeHandle("WorldLocation", aircraftHandle)

May raise ObjectClassNotDefined, NameNotFound, FederateNotExecutionMember, ConcurrentAccessAttempted.

getAttributeName( attribute, objectClass)
Returns class attribute name.

May raise ObjectClassNotDefined, AttributeNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted.

publishObjectClass( objectClass, (attribute))

For example

wordLocationHandle = rtia.getAttributeHandle("WorldLocation", aircraftHandle)
rtia.publishObjectClass(aircraftHandle, [wordLocationHandle])

May raise ObjectClassNotDefined, AttributeNotDefined, OwnershipAcquisitionPending, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.

unpublishObjectClass( objectClass)

May raise ObjectClassNotDefined, ObjectClassNotPublished, OwnershipAcquisitionPending, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.

subscribeObjectClassAttributes( objectClass, (attribute), active=True)

For example

wordLocationHandle = rtia.getAttributeHandle("WorldLocation", aircraftHandle)
rtia.subscribeObjectClassAttributes(aircraftHandle, [wordLocationHandle])

May raise ObjectClassNotDefined, AttributeNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.

unsubscribeObjectClass( objectClass)

May raise ObjectClassNotDefined, ObjectClassNotSubscribed, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.

startRegistrationForObjectClass( objectClass)

May raise ObjectClassNotPublished.

stopRegistrationForObjectClass( objectClass)

May raise ObjectClassNotPublished.

2.1.2.2 Interaction Declaration

\begin{figure}\centering
\pagecolor{white}
\begin{msc}{Interaction Declaration}
...
...hInteractionClass}{m1}{m2}
\nextlevel
\end{msc}\textcolor{white}{.} \end{figure}

getInteractionClassHandle( interactionName)
Returns interaction class handle.

May raise NameNotFound, FederateNotExecutionMember, ConcurrentAccessAttempted.

getInteractionClassName( interactionClass)
Returns interaction class name.

May raise InteractionClassNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted.

publishInteractionClass( interactionClass)

May raise InteractionClassNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.

unpublishInteractionClass( interactionClass)

May raise InteractionClassNotDefined, InteractionClassNotPublished, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.

subscribeInteractionClass( interactionClass, active=True)

May raise InteractionClassNotDefined, FederateNotExecutionMember, ConcurrentAccessAttempted, FederateLoggingServiceCalls, SaveInProgress, RestoreInProgress.

unsubscribeInteractionClass( interactionClass)

May raise InteractionClassNotDefined, InteractionClassNotSubscribed, FederateNotExecutionMember, ConcurrentAccessAttempted, SaveInProgress, RestoreInProgress.

turnInteractionsOn( interactionClass)

May raise InteractionClassNotPublished.

turnInteractionsOff( interactionClass)

May raise InteractionClassNotPublished.