You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python adapter controller performs a regular request for status and configuration from underlying applications.
For each reply, the structural update timestamp (formerly hash) will be checked.
If this is different to the previous timestamp (should always be the same or newer), then trigger a metadata request and completely rebuild the ParameterTree.
The controller can contain a cache member variable that the incoming status/config is assigned to.
When the ParameterTree is rebuilt, the RW attribute will need to be checked. If R, then pass in a getter. If RW, then pass in a setter and getter.
The getter should be wrapped using a partial, supplying the path to the leaf node. This can be used within the getter to index into the cached member.
The setter (if required) can also be wrapped in a partial, and the path can be used to build the correct form of IpcMessage to send to the underlying C++ applications.
When a structural change occurs, throw away the ParameterTree and completely rebuild a new one with the new structure.
metadatarequest and completely rebuild theParameterTree.status/configis assigned to.ParameterTreeis rebuilt, theRWattribute will need to be checked. IfR, then pass in a getter. IfRW, then pass in asetterandgetter.gettershould be wrapped using apartial, supplying the path to the leaf node. This can be used within thegetterto index into the cached member.setter(if required) can also be wrapped in apartial, and the path can be used to build the correct form ofIpcMessageto send to the underlying C++ applications.ParameterTreeand completely rebuild a new one with the new structure.