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

Use of wait_for_current_time_update to sequence feds with acyclic interfaces #105

Open
trevorhardy opened this issue May 16, 2024 · 0 comments
Labels
documentation Need to add documentation to an existing example new example New example needed

Comments

@trevorhardy
Copy link
Contributor

For federates that do not have cycles in their interfaces (e.g. a sequence of controllers where the output of one feeds the input of the next), you can use wait_for_current_time_update on all but the first in the sequence to achieve a defined order of operation (time grants). They would all be granted the same simulation time but will receive those grants after all their dependent federates have completed execution at that timestep. That is, the dependency graph between the federates effectively defines the order of time grants.

We need an example on this.

@trevorhardy trevorhardy added documentation Need to add documentation to an existing example new example New example needed labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Need to add documentation to an existing example new example New example needed
Projects
None yet
Development

No branches or pull requests

1 participant