-
Notifications
You must be signed in to change notification settings - Fork 168
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
Feature request: support lookup tables or dictionaries #674
Comments
Is this a request of support for some type of enum-support where we with some synatx (VSS-like or totally different) give a more formal definition? Like for
... and then the signal could specify that it use I think that is feasible where we in COVESA has defined the list and the list is of limited length, but more complex in other areas like:
|
I am pointing out the need for machine-readable lookup dictionaries. Some concepts in VSS define the meaning of their actual expected values within the description. However, in practice, the end user must implement the interpretation on his own. Here is another example: Vehicle.Powertrain.Transmission.SelectedGear:
datatype: int8
description: The selected gear. 0=Neutral, 1/2/..=Forward, -1/-2/..=Reverse, 126=Park, 127=Drive.
type: actuator As you can see, the actual meaning is encoded as text in the description. |
I see the following cases that are related with the lack of a formal (and explicit) machine-readable lookup tables:
ALLOWED
construct is used.ALLOWED
values are defined but their meaning is not explicit.Case A
The use of a predefined set of possible values is expected, but no
ALLOWED
construct is used.There are concepts whose description mentions the expected value according to some standard codes. However, the VSS model does not provide a machine-readable reference to that set of values. Hence, the end user is completely responsible to validate the correctness of the actual data assigned to that property, which is prone to errors. For example:
Case B
ALLOWED
values are defined as a set of codes whose meaning is not explicit.The model should be self-explainable in a way that the user can understand the meaning of the data without the need to consult external resources. For example:
Suggestion
Define a mechanism to include lookup tables (or dictionaries) that allow the user to easily interpret or process the codes or allowed values.
The text was updated successfully, but these errors were encountered: