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

1516e FOM Parser - <sharing /> Property Extraction #284

Closed adlaws closed 5 years ago

adlaws commented 5 years ago

This is a minor tweak to the 1516e FOM parser and related code so that it extracts the <sharing /> property for interactions and object class attributes and makes it available via the constructed ObjectModel.

This is useful because the FOM parser can also be used to parse a SOM, from which we can determine the publications and subscriptions for a federate.

With this change in place, the parser (case insensitively) recognises the standard Publish, Subscribe, PublishSubscribe and Neither values, defaulting to Neither in the case that no <sharing /> element is present, or an unrecognised property is provided.

timpokorny commented 5 years ago

Merged the first PR into master, but then just realised that the test failure isn't the sporadic MOM test but one from the HLA 1.3 test suite. Can you have a look at that? I think it's in the join processing.