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

Partially build component before giving it to the sim #522

Open
rusu24edward opened this issue May 21, 2024 · 0 comments
Open

Partially build component before giving it to the sim #522

rusu24edward opened this issue May 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rusu24edward
Copy link
Collaborator

rusu24edward commented May 21, 2024

Whether using the SmartGridWorldSimulation or the GridWorldSimulation, it would be nice to be able to partially build a component and then give it to the simulation to finish building. For example, I would like to build a done component with a target_mapping already configured. Then I want to give that component to the sim to finish building (with the agents and grid, etc.).

target_overlap_done = TargetAgentOverlapDone(
    target_mapping={....}
)
target_encoding_done = TargetEncodingInactiveDone(
    target_mapping={...}
)
sim = MySim(
    ....,
    dones={target_overlap_done, target_encoding_done},

The building process in MySim doesn't have to configure the target_mapping parameter because that is already assigned, but it would give it the other necessary parameters, like agents and grid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant