Giter Site home page Giter Site logo

FSM diagram for a non root node about atf HOT 1 CLOSED

sonywws avatar sonywws commented on June 10, 2024
FSM diagram for a non root node

from atf.

Comments (1)

Ron2 avatar Ron2 commented on June 10, 2024

You would normally want just one editing context per document. The editing context typically owns the current selection and command history (undo/redo). If your child nodes are in the same physical document as the root nodes, then I'm pretty sure you would not want to mix up undo/redos between root nodes and child nodes.

It sounds like you're trying to build a hierarchical finite state machine. If so, the Statechart sample app provides an example of that, since it has hierarchical elements -- Statechart elements can be inside other Statechart elements. The Circuit Editor, too, has a hierarchy through the use of circuit groups which can contain child circuit groups and so on.

To show a FSM editing context in some circumstance, to me, that means that you want to change the active context. In the sample app, we only do that when a different document becomes active. You use the IContextRegistry and set the ActiveContext property. You could set the ActiveContext to a different EditingContext when a non-root node is selected. This sounds a little bit tricky because the FSM's EditingContext is also a selection context (it implements ISelectionContext), so you'll find that if you change the ActiveContext in response to a selection changed event, you'll probably immediately generate another selection changed event.

Did I understand your question correctly?

from atf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.