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

Does all federates/programs need an implicit startup trigger? #109

Open
erlingrj opened this issue Oct 29, 2024 · 1 comment
Open

Does all federates/programs need an implicit startup trigger? #109

erlingrj opened this issue Oct 29, 2024 · 1 comment
Labels
question Further information is requested

Comments

@erlingrj
Copy link
Collaborator

@edwardalee might be able to answer this. Is it necessary to have all federates (and in general all reactor programs) start by advancing their tag to the start tag, regardless of whether the program actually has any startup triggers?

If we do this, then it is possible to check if current_tag > NEVER_TAG to know whether we are properly initialized and have started execution.

@erlingrj erlingrj added the question Further information is requested label Oct 29, 2024
@edwardalee
Copy link
Collaborator

I think that reactor-c does advance to the start tag, even if there are no reactions to startup. However, I don't think this is necessary. I do recall that execution at the start tag has to be handled specially in a number of places, and that getting it right was not trivial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants