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
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
The text was updated successfully, but these errors were encountered:
mdabrowski1990
changed the title
[refine] Introduce Data Record: Text Data Record
Introduce Text Data (signal for message database) Record
Oct 30, 2024
mdabrowski1990
changed the title
Introduce Text Data (signal for message database) Record
Introduce Text Data Record (signal for message database)
Oct 30, 2024
mdabrowski1990
changed the title
Introduce Text Data Record (signal for message database)
Introduce Mapping Data Record (signal for message database)
Dec 10, 2024
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:off
on
Testing
Acceptance criteria
The text was updated successfully, but these errors were encountered: