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

Defining Overlapping Policies for Distinct Activity Types #138

Open
lummish opened this issue May 14, 2024 · 5 comments
Open

Defining Overlapping Policies for Distinct Activity Types #138

lummish opened this issue May 14, 2024 · 5 comments

Comments

@lummish
Copy link
Collaborator

lummish commented May 14, 2024

Is your feature request related to a problem? Please describe.

We are having trouble defining a policy which overlaps in time and user classes with another policy, but specifies regulations for a different activity type.

For a representative example, consider the following situation:

Regulation A: There is a loading zone which has normal operating hours between 09:00 and 17:00. In this zone, we allow all types of vehicle to park during the specified hours.

Regulation B: We would like to define a 24-hour policy for this zone which specifies that vehicles cannot stop in the travel lane along the zone (i.e. vehicles are not allowed to double park). This regulation applies to all classes of vehicle.

Currently, it does not seem possible to specify both Regulation A and Regulation B as separate policies because, though the policies specify regulations regarding different activities (parking vs. travel), they do not do so using disjoint user classes.

Describe the solution you'd like

Modify the specification to allow policies with overlapping time spans to be defined with equal priorities on the same zone if they specify disjoint user classes or disjoint activities.

Is this a breaking change

The only potential breaking change that this proposal would introduce would be with respect to policy validation logic, as policies which would previously have been considered as conflicting, would not necessarily be conflicting.

Impacted Spec

For which spec is this feature being requested?

  • Curbs

Describe alternatives you've considered

  • We considered defining the travel lane as a separate zone which would allow specification of a separate policy, however a standard travel lane does not meet the criteria specified for being a zone.
  • We considered allowing conflicting activity definitions for rules within an individual policy, however this does not accommodate regulations which have distinct time spans.

cc: @michaelautomotus

@schnuerle
Copy link
Member

@lummish Can you recommend a specific change to the spec that would accommodate what you are asking for? Is it enough to just allow equal policy priorities?

@lummish
Copy link
Collaborator Author

lummish commented May 23, 2024

@schnuerle I don't believe any material change to the specification would be required other than modifying the provision in the "priority" section here. Currently, it reads:

Two Policies that apply to the same Curb Zone with overlapping Time Spans and equivalent User Class enumerations MUST NOT have the same priority.

This could be changed to:

Two Policies that apply to the same Curb Zone with overlapping Time Spans MAY ONLY have the same priority if the policies apply to disjoint User Classes or disjoint Activities.

@LaurentG-AMD
Copy link

Is there really a conflict if both activities are disjointed? If car A is performing activity A covered by policy A, isn't policy B that does not cover it just irrelevant? So setting whichever priority higher than the other achieve the same result anyways?

@jacobmalleau
Copy link
Collaborator

Also, would this not be considered two separate curb zones? There is the curb adjacent zone which has the loading policy (Policy A), and then the travel lane with the no stopping policy (Policy B).

I know technically CDS does not cover travel lanes, but could in this context.

@schnuerle
Copy link
Member

We certainly could change the spec to allow the use of CDS in travel lanes. I think this is something we have talked about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants