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

specify the functionality of clear on all objects #779

Closed
jgostick opened this issue Feb 2, 2018 · 2 comments
Closed

specify the functionality of clear on all objects #779

jgostick opened this issue Feb 2, 2018 · 2 comments
Milestone

Comments

@jgostick
Copy link
Member

jgostick commented Feb 2, 2018

The workspace, simulation (or project), and all base objects need to behave in a certain way upon calling clear.

Each one should be discussed and implemented properly, and consistently.

@jgostick jgostick added this to the V2.0 milestone Feb 2, 2018
@jgostick
Copy link
Member Author

jgostick commented Feb 2, 2018

I think clear on the Simulation is ok as it...it should just remove all objects from the simulation and let the user start again. Because there is no object handles being stored anywhere else this should be a straight-forward operation.

@jgostick
Copy link
Member Author

  1. Clear on workspace clears everything (note this will NOT remove the reference to objects that may be lingering on the command line)
  2. Clear on simulation clears everything (same issue as above)
  3. Clear on a base object should probably do something different depending on what type of object it is. Things to consider are:
  • Should it clear only calculated values or also associated models?
  • Should it optionally clear labels, properties, models, etc? Only empty labels?
  • How thoroughly should it remove it's own references from other objects (i.e. it's labels)

@jgostick jgostick closed this as completed Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant