Copyright VirtualSim 2004-2020 - All rights reserved
Defining SOM
Now, it is time to define the SOM by adding all Objects and Interactions that will participate in this Federation.
We want to Publish and Subscribe the position only of an Entity.
We just need two FedItems.
One to Publish and one to Subscribe.
We will add first the publishing FedItem by right clicking into the Publishers part of the HLA diagram.
The publishing FedItem is then created.
You can select it and drag it wherever you want on its upper area (even resize it if needed).
Use the button to revert to the default size.
Let's do the same with the Subscriber
Finally, attach the entity to the Publisher FedItem, because the entity basic will be using it to broadcast its position, heading and speed through the RTI.
We will use two methods to get/set the data.
It will be up to the user to decide which one he prefers although the DataModel one is more suitable for large Federations.