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

Keep track of input actions in the environment #42

Merged
merged 3 commits into from
Mar 10, 2023
Merged

Conversation

cmnrd
Copy link
Contributor

@cmnrd cmnrd commented Mar 9, 2023

This change allows actions to be owned by the environment. It further adds the concept of 'input actions' which are actions that act as an input to the reactor program. Currently, this is limited to physical actions. Later, enclave and federate connections will be added. Since this mechanism allows us to infer if keepalive is needed or not, the run_forever parameter of the Environment is dropped.

cmnrd added 2 commits March 9, 2023 10:55
Currently, the only action type that is an input action is a physical action.
Later we will add enclave and federate connections.
@cmnrd cmnrd added the feature New feature label Mar 9, 2023
@cmnrd cmnrd requested a review from tanneberger March 9, 2023 11:51
@cmnrd cmnrd added enhancement Enhancement of existing feature and removed feature New feature labels Mar 9, 2023
Copy link
Member

@tanneberger tanneberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

const bool fast_fwd_execution_{default_fast_fwd_execution};

std::set<Reactor*> top_level_reactors_{};
/// Set of actions that act as an input to the reactor program in this environment
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the set of physical actions then ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment yes, but it will include enclave (and federated) connections soon.

Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cmnrd cmnrd merged commit e80cd36 into master Mar 10, 2023
@cmnrd cmnrd deleted the input-actions branch March 10, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants