-
Notifications
You must be signed in to change notification settings - Fork 84
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
Move Clock dependency info to attribute #1375
Conversation
@t-sommer : Is this ready for review? If not, can I help? @TorstenBlochwitz : Can you have a look, please and comment? Do you remember why we originally chose to have a ModelStructure element and not add this as attribute to the Variable element as now proposed? |
@andreas-junghanns |
The schema figures still need to be regenerated. |
@t-sommer convinced me that this proposal might be a better way for these reasons:
@TorstenBlochwitz : Any strong arguments against? |
Done. |
Ready for review? |
I like the idea of putting the clock dependency back to the variables. But why are we limiting this to discrete variables? |
Only discrete variables will change at a clock tick. For fixed tunable and constant. These are set or retrieved independent of clock ticks. But it could still have some use for model information to assign parameters to specific clock partitions, so as long as we forbid continuous I am ok to allow all others to be part of a clock. |
@KarlWernersson You're right, I probably didn't make that clear enough. My point is to allow it for tunable parameters, discrete inputs, discrete outputs, and discrete local variables. For fixed, constant, continuous it is not needed or makes no sense. |
Regular Design meeting: let's merge it. @t-sommer will do so. |
[[clocks,`clocks`]] | ||
If present, this variable is clocked. | ||
The value of <<clocks>> is a list of value references of <<Clock>> variables this variable depends on. | ||
Only discrete variables can have this attribute. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only discrete variables can have this attribute.
We need the information also for tunable parameters, i.e. discrete variables and tunable parameters can have this attribute.
fixes #1370