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

In-situ context/simulation cloning #1243

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

rwcarlsen
Copy link
Member

This is for post 1.4, but I just wanted to post it here so I and others don't forget about it. This allows agents to clone the entire state of the context, optionally modify the cloned context, and run the simulation/context to look into the future supporting things like lookahead. It is pretty tricky code and will need a very careful review when the time comes.

Previously, when a context was destructed, it would only delete the
root-agents (agents without parents).  Later on, in order to enable agents to
deploy other agents and then leave the simulation, we changed agents to not
destruct their children when they are destructed, but the context was not
updated to destruct non-root agents too.  This fixes that.
@scopatz scopatz changed the base branch from develop to master September 7, 2017 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant