Extend (Syntax) for Expanding Actor, Struct, Action?
Describe the feature
What is “Extend” used for?
-
If a commonly used actor or struct does not contain all of the fields necessary to be compatible with a simulator or situation, just “Extend” it to provide the fields you need. Make the best of the situation.
-
If you want all actors of type or structs of type to have the same constraints, “Extend” allows to add the necessary situational constraints that you need.
Describe the solution you would like
<type-extension> ::= 'extend' <type-name>':'
<member>+
<member> ::= <actor-member> | <struct-member> | <scenario-member> | <action-member>
Example:
extend car:
when( category: semi_trailer ):
keep( max_speed == 50[kph] )
Voted on: 5/12/2021
Question: Adopt “extend” syntax?
Vote Results:
Yes- 7
No- 0
Abstain- 0
Not-Cast- 0