-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Is your feature request related to a problem? Please describe.
Similar to issue #117, there is currently no way to define and communicate a policy that excludes User Classes rater than include them, based on our reading of the User Classes spec.
For instance, creating a no-stopping zone except for buses would require overlaping both a no-stopping zone for every type of vehicles and superimposing a stopping for User Classes='bus' with a higher priority, which departs from the way the regulations are written in Montreal and both makes it more complicated to maintain and to correctly comprehend for local users.
Describe the solution you'd like
We would like
- user_classes_except = true to indicate that a rule does not apply during to the listed user classes
Example : A no stop zone for a bus stop:
{
'activity': 'no-stopping',
'user_classes': ['bus'],
'user_classes_except': true
}
Is this a breaking change
No, not breaking
Impacted Spec
Curbs
Describe alternatives you've considered
As described above it is possible to circumvent the missing exception clause but it requires multiplying the number of policy objects and may make the model harder to maintain and/or comprehend.
Additional context
None