uds icon indicating copy to clipboard operation
uds copied to clipboard

[refine] Design Response Generator API

Open mdabrowski1990 opened this issue 4 years ago • 0 comments

Requires

  • State API
  • Rule API

Description

As a user, I would like to have API of automatic responder defined, so I know what functionalities it has and how to use them.

Acceptance Criteria

  • Response Generator class is defined
  • Each method has annotation and docstring. There shall be no code, preferable they raise exceptions.
  • Response Generator provide following functionalities:
    • store current state of a server (e.g. session, security access) and decide a response basing on current state
    • automatically generate a response to any request
    • support no response to a request (e.g. functional addressing)
    • support multiple responses to a request (periodic or on event responses - e.g. SID 0x2A, 0x86)

mdabrowski1990 avatar Sep 15 '21 08:09 mdabrowski1990