Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Mapping Data Record (signal for message database) #8

Open
mdabrowski1990 opened this issue Feb 9, 2021 · 0 comments
Open
Assignees
Labels
implementation Changes to code

Comments

@mdabrowski1990
Copy link
Owner

mdabrowski1990 commented Feb 9, 2021

Requires

#6

Description

As a user, I want to have Data Record that supports text to value mapping (e.g. 0 -> 'off', 1 -> 'on'), so I can either use text (or raw value) to decode/encode values of these data records.

Example:
Data Record Is ECU on contains information with following mapping:

  • 0 = off
  • 1 = on

Testing

  • unit tests
    • Value encoding and decoding using Text Data Record
    • There is exception raised whenever undefined value is being encoded using Text Data Record.
    • There is warning raised whenever out of range value is being decoded from Text Data Record.

Acceptance criteria

  • Text Data Record class is defined
    • inherits after Abstract Data Record class
    • provide encode method (input: raw value, output: text)
    • provide decode method (input: text, output: raw value)
  • proper error handling is implemented
@mdabrowski1990 mdabrowski1990 added the implementation Changes to code label Feb 9, 2021
@mdabrowski1990 mdabrowski1990 added this to the Database introduction milestone Feb 9, 2021
@mdabrowski1990 mdabrowski1990 changed the title Introduce Data Record: Text Table Introduce Data Record: Text Data Record Mar 26, 2021
@mdabrowski1990 mdabrowski1990 removed this from the X) Database introduction milestone Sep 6, 2021
@mdabrowski1990 mdabrowski1990 changed the title Introduce Data Record: Text Data Record [refine] Introduce Data Record: Text Data Record Sep 8, 2021
@mdabrowski1990 mdabrowski1990 changed the title [refine] Introduce Data Record: Text Data Record Introduce Text Data (signal for message database) Record Oct 30, 2024
@mdabrowski1990 mdabrowski1990 changed the title Introduce Text Data (signal for message database) Record Introduce Text Data Record (signal for message database) Oct 30, 2024
@igorapple igorapple self-assigned this Nov 13, 2024
@mdabrowski1990 mdabrowski1990 changed the title Introduce Text Data Record (signal for message database) Introduce Mapping Data Record (signal for message database) Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implementation Changes to code
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants