Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The parameter service is used for initialization purposes across all participants. Several parameters can be set in the LCC and are distributed on startup / requested when other applications in the network are started.

CPM Parameter Interface

This interface allows the user to request a parameter from the LCC. The parameters that can be requested are listed below.

All requests are blocking, meaning that parameter requests are sent to the LCC periodically until an answer has been received, which is then returned. A parameter storage is implemented as well - thus, data that has been received and stored before is not requested again but returned immediately. Parameters may change during runtime, if so then these changes are handled by an internal callback function that updates the parameter storage.

Multiple parameter types are supported.

Receiving Parameters

The class ParameterReceiver.hpp in the cpm library includes a reader and a writer to request and receive parameters from the LCC. It also contains a storage that saves already received parameters and their values, using mutexes for thread-safe access, so that requests do not need to be sent multiple times. Its implementation includes the implementation of the functions for Parameter.hpp.