openlvc / portico

Portico is an open source, cross-platform, fully supported HLA RTI implementation. Designed with modularity and flexibility in mind, Portico is a production-grade RTI for the Simulation and Training Community, so come say hi!
http://www.porticoproject.org
151 stars 81 forks source link

Fix combining multiple FOMs #316

Closed jarrodgreene closed 3 years ago

jarrodgreene commented 3 years ago

Replaces several uses of HashSets with TreeSets in/around OCMetaData

Previously Hashset were used for adding in objects from FOMs, however the order that objects returned by the iterator is not fixed, so different federates could add objects in different orders, causing handle mismatches. TreeSets however will always return the same set in the same order, so no handle mismatches.