|
VR-Engage
2.3
|
This page covers station identity and sensor-request message changes. Update message producers and consumers together when upgrading.
In vreVrfMessages/ifAssignRolePlayer.h, ifUnassignRolePlayer.h, and ifVreStatus.h, setId(unsigned long) and id() const were replaced with setStationId(const DtString&) and DtString stationId() const. Use the stable station-name string resolved at startup, not a numeric ID. setUUID(const DtString&) and DtString uuid() const now use const DtUUID& and return DtUUID. Update conversions and comparisons at every call site.
DtIfVreStatus::setName(const DtString&) and name() const were removed. Read and publish station identity through stationId() and setStationId(). The new setOwnshipSimAddress(const DtSimulationAddress&) and DtSimulationAddress ownshipSimAddress() const carry the ownship simulation address.
In vreVrfMessages/setVreControlled.h, DtSetVreControlledRequest::stationId() now returns std::string. setStationId() takes const std::string&, not unsigned. stationName() and setStationName() were removed. Use setRoleName(const std::string&) to set the entity-role name; roleName() const reads it. roles() and setRoles() retain their signatures, but their strings identify role types rather than station names.
In vreVrfMessages/ifVreSensorDataRequest.h, DtIfVreSensorDataRequest::setSubscriberId() now takes const DtString&; subscriberId() returns const DtString& instead of unsigned long. Replace numeric subscription IDs with string IDs in both request and response handling.
DtIfVreSensorDataRequest adds setSensorName(const DtString&) and const DtString& sensorName() const alongside the existing sensor-type accessors. Set the sensor name when a subscription must select a specific sensor.