Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Add method to split node and create subjunctive node at runtime #11

Open
jeffreyguenther opened this issue Jan 23, 2014 · 0 comments
Open
Milestone

Comments

@jeffreyguenther
Copy link
Owner

Take an existing instance of a node and split into two alternatives.

The basic algorithm:

  • Create a subjunctive node
  • Name the subjunctive node
  • Add original instance to subjunctive node
  • Refactor all reference to original instance to subjunctive node's active node. Keep the port the same.
  • Remove production of original instance from graph definition
  • Add production of subjunctive node to graph instance
  • Create instance of split node with the right arguments
  • Update all existing system states to include new active subjunct map entry
  • Create new system state for the new subjunctive node. Keep all of the same subjuncts from the state where the split originated. Add an entry for the new subjunctive node with the newly created instance as the active subjunct.
@jeffreyguenther jeffreyguenther added this to the Modify Runtime to handle alternatives milestone Mar 31, 2014
@jeffreyguenther jeffreyguenther changed the title Add method to create alternatives at runtime Add method to split node and create subjunctive node at runtime Mar 31, 2014
@jeffreyguenther jeffreyguenther removed this from the Modify Runtime to handle alternatives milestone Jun 28, 2015
@jeffreyguenther jeffreyguenther modified the milestone: Define 1.0 API Aug 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant