Retrieving Configurations

Similar to configuration classes, devices will have a corresponding configuration accessor class. These accessor classes will contain methods to get parameters directly from the device. The structure of the accessor class resemble that of the respective configuration class where sub-configurations have corresponding nested accessors.

However, there is no need to manually instantiate a configuration accessor, as it is automatically handled by the device class. The device class has a public member object of its accessor class called configAccessor which can be used to get configuration parameters.

Below is an example of how to get a configuration parameter from a device:

int parameter = device.configAccessor.getParameter1();

Here is how to get a nested configuration parameter:

int parameter = device.configAccessor.subConfig1.getParameter3();

Last updated