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

Federate member timeStatus is never updated #277

Closed michaelrfraser closed 6 years ago

michaelrfraser commented 6 years ago

In the Portico's new centralized RTI implementation, each Federate has a member called timeStatus.

This member is never updated by the time functions, which instead go through the Federation's timeManager object.

There are several read-references to Federate.timeStatus (made via Federate.getTimeStatus) that will be getting an incorrect picture of the federate's actual time status. All references of Federate.timeStatus should be removed, and instead consumers should use Federation.getTimeManager().getTimeStatus()

michaelrfraser commented 6 years ago

Fixed in PR #278. Removed member Federate.timeStatus and method Federate.getTimeStatus()

Updated all references to the removed members to query the Federation's TimeManager instead.

timpokorny commented 6 years ago

Merged.