-
Notifications
You must be signed in to change notification settings - Fork 232
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
Agency: additional events #275
Agency: additional events #275
Conversation
At the end of a trip or a maintenance, a vehicle may be unavailable. The `service_start` transition signals the vehicle is available again, it can be used by programs operating 24/7.
Definitely addresses a need. Trying to be sure that this is the best way to address that need. Don't yet have a counter-proposal. Will consider with @whereissean and @toddapetersen. |
I have a counter-proposal. I think we should instead just add a transition from |
I wrote:
Actually I have what I think is a full enumeration of the possibilities for resolving this, none of which I'm in love with:
I'm interested in how folks would rank these solutions, or are there others I've missed? @whereissean @hunterowens @lionel-panhaleux |
If I had to grade these alternatives, I'd say:
|
@lionel-panhaleux I just remembered there's a fifth option, added for your grading. Though in some ways is suffers the same inherent pathology as option one. My problem with option two ( |
There's also another option, which is to preserve the semantics of option 1 (modeling a single real-world event as a sequence of
I'm not sure how appealing any of these options are in agency, or if there are other alternatives, but it would be nice to avoid the need for pseudo-events like |
@rf- added to list. The three sub-options have new implications that we'd have to wade through. Each seems to add more complexity than it removes, seems to me. |
Yeah, I'm not sure I find any of them super compelling, but that's also kind of how I feel about all the other options too. The core idea—having a relatively small set of events, allowing them to stack up on the same timestamp (consistent with the normal rules about state transitions), and then leaving the vehicle in the state indicated by the last event—seems like it has some nice properties, but I'm not sure anyone has come up with the right way to deal with the sequencing problem yet. |
I can follow up on this |
2020-01-09 WG meeting:
Morgan: should be a minor version because it's adding something ? |
Until #422 is solved, there is no versioning on the Agency API.
|
Propose we close this in favor of the Provider/Agency reconciliation project |
Ok closing this per the recommendation above in favor of the now completed reconciliation work. |
At the end of a trip or a maintenance, a vehicle may be unavailable.
The
service_start
transition signals the vehicle is available again, it can be used by programs operating 24/7.Note this is missing a matching state machine diagram.
See #274