-
Notifications
You must be signed in to change notification settings - Fork 373
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
Clarify documentation of node update()
method
#3388
base: master
Are you sure you want to change the base?
Conversation
This needs a quick review for correctness. Single reviewer should be fine. |
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.
@clinssen Thanks for the PR. Please see my inline comments for some corrections on details.
* Advance the state of the node forward in time by one ``min_delay`` | ||
* interval. Precondition: state of the node corresponds to the time | ||
* ``origin``. Postcondition: state of the node corresponds to the time | ||
* ``origin + min_delay``. |
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.
Doxygen comments should start with a single line with a brief description that can, e.g., be included in a table of classes. And update() does not strictly advance through one min_delay interval: If Simulate is called with a time that is not a multiple of min_delay, we will stop inside a min_delay slice.
* Advance the state of the node forward in time by one ``min_delay`` | |
* interval. Precondition: state of the node corresponds to the time | |
* ``origin``. Postcondition: state of the node corresponds to the time | |
* ``origin + min_delay``. | |
* Advance the state of the node in time through the given interval. | |
* | |
* This method advances the state of the node through the interval | |
* ``(origin+from, origin+to]``, which is at most ``min_delay`` long. | |
* | |
* - Precondition: State of the node corresponds to the time ``origin+from``. | |
* - Postcondition: State of the node corresponds to the time ``origin+to``. |
* This method is called every ``min_delay`` interval, with each step | ||
* between ``from`` and ``to`` corresponding to one simulation resolution | ||
* (``nest.resolution``) timestep. |
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.
This also needs to be updated corresponding to the changes above.
* Bring the node from state $t$ to $t+n*dt$, sends SecondaryEvents | ||
* (e.g. GapJunctionEvent) and resets state variables to values at $t$. | ||
* Advance the state of the node forward in time by one ``min_delay`` | ||
* interval (see ``update()``); send SecondaryEvents (e.g. GapJunctionEvent) |
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.
Same points as for update()
apply here. Also, can one mark up the "see update()" here in such a way that update()
becomes a hyperlink to the documentation for update?
No description provided.