I am using HLA and the Portico RTI and I have a situation in which I have to know that if particular federates have joined the federation or not. Can someone help with this. This may be very basic but i am very new to HLA. Thanks in advance.
How to know if a federate has joined a federation in HLA
679 Views Asked by shubham At
3
There are 3 best solutions below
1

ante's solution is standard procedure, but here is an alternative method:
Assuming you have assigned a unique name(string) to that particular federate upon joining. You can call "Get Federate Handle service" of RTIambassador, with the federate's name as input parameter. A handle of the federate will be returned if it exists in the federation, otherwise an exception will be thrown.
Check your RID file (RTI.rid). It must be in the directory that your federate is executed from. There are some parameters you can change to see all the logs. Delete the # acoording to log level you want