-
Notifications
You must be signed in to change notification settings - Fork 43
Describe spatialDistribution as event triggering #3795
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
base: master
Are you sure you want to change the base?
Conversation
|
Note that this will take some time, due to the need to check the implementations (which are more complicated than for delay). |
|
I had the impression that we already had the necessary test implementations in some tools? @casella, @gkurzbach? |
Well, at least it will take more time for me to check (including checking whether we have a test-implementation). Specifically for the test-implementations it would be good to understand exactly which events are propagated (just discrete-time expressions? any change? any minimum discontinuity to avoid events bouncing back and forth and generating more and more events?) |
Just like However, I realize that
I'd say we should specify this with the same level of detail as for
|
80a8fab to
68d5382
Compare
|
I notice that it was now generalized to non-Reals. I can to some extent see that it makes sense, but I'm not sure if I have seen any use-case for it - and I don't know how much extra issues it brings. It may be easier to skip that part.
I don't know the consequence of this. I think I get the point that non-events for positiveVelocity imply that the spatialDistribution doesn't generate events and thus isn't discrete-time, even if you send in non-Reals; but there might be additional subtle issues. |
Yes, I found it best to put everything on the table. Based on my experience with implementing |
At least I have tried to separate the concerns of event generation within |
We decided to make both
delayandspatialDistributionevent triggering operators, but so far the specification has only been updated fordelay. This PR does it also forspatialDistribution.At least to me, trying to capture the intricacies of event triggering in the pseudo-code for
spatialDistributiondoesn't sound like a good idea. Instead, I'd like us to consider the option of throwing out the pseudo-code, now that it is becoming even more remote from an actual implementation.Note that we haven't test-implemented this in System Modeler, so I am counting on others to verify that the few things I have added regarding event triggering is in agreement with what has already been "test-implemented" in other tools.