2.1 HLA Services

The HLA services are provided by FederateAmbassador and RTIAmbassador.

Service call-flows are described by Message Sequence Charts (MSC).

\begin{figure}\centering
\pagecolor{white}
\begin{msc}{Example}
\drawframe{no}
\...
...level
\mess{Federate Service}{m2}{m3}
\end{msc}\textcolor{white}{.} \end{figure}

The above call-flow references the following Python code.

import hla.rti as hla

class MyAmbassador(hla.FederateAmbassador):
    def Federate_Service(self, parameters):
        ...

fed = MyAmbassador()

rtia = hla.RTIAmbassador()
rtia.joinFederationExecution("python-01", "MyFederation", fed)

rtia.RTI_Service(parameters)



Subsections