Comments (4)
@ekigwana thank you again. My Composite
is actually pretty complex and is a History state, so does not have a normal initial entry path. So I was hoping this part of the UML state machine language was supported in SML. Seems like not.
I may be able to refactor my Composite
into two pieces where this directed-to state is the initial state of a piece of it.
from sml.
What you need is an arrow from State 1 -> Composite. If the desired initial state is Sub2 and it makes sense, then make that the initial state. State 1 -> Composite, region 1 kicks off its initial state, region 2 -> Sub1
See https://boost-ext.github.io/sml/examples.html#composite
from sml.
What you need is an arrow from State 1 -> Composite. If the desired initial state is Sub2 and it makes sense, then make that the initial state. State 1 -> Composite, region 1 kicks off its initial state, region 2 -> Sub1
Thank you, appreciate the reply and I see how my grabbing of that particular picture caused confusion. I only used that picture to show a directed transition example. My system is more complex, with a default initial state in Composite that is different from the one I want a particular upper state and event to transition into.
from sml.
What you need is an arrow from State 1 -> Composite. If the desired initial state is Sub2 and it makes sense, then make that the initial state. State 1 -> Composite, region 1 kicks off its initial state, region 2 -> Sub1
Thank you, appreciate the reply and I see how my grabbing of that particular picture caused confusion. I only used that picture to show a directed transition example. My system is more complex, with a default initial state in Composite that is different from the one I want a particular upper state and event to transition into.
Then what you need is a Sub0 state which auto transitions to Sub1 or Sub2 as you desire.
from sml.
Related Issues (20)
- How to achieve shallow history behavior? HOT 1
- dependency injection through process_event() to save sm memory footprint HOT 2
- [Question] Can you know upfront if an event can be processed?
- What's the actual point of this all? HOT 9
- sm.is("state"_s) suddenly doesn't compile anymore HOT 5
- How to store a "dispatch table" in a class? HOT 1
- sml::aux::get_type_name<TAction>() not returning name of lambda function HOT 2
- Compilation error when using logger, process_queue and member function action HOT 1
- how to know weather state is a sub-state machine or a normal state HOT 1
- How to make a state transition that changes to the next state upon completion of its action?
- Question: Debugging in STM32CubeIDE
- copy of class containing transition table is made when boost::sml::sm is instantiated HOT 1
- [Documentation] Who is using it HOT 2
- can not work with CLion HOT 1
- deferred event not processed when in any orthogonal region other than first
- gcc 10.5 warning: array subscript is outside array bounds HOT 4
- SML version change caused static assert fail in state machine constructor HOT 4
- Adding boost-ext-sml to conan-center-index HOT 2
- Anonymous event HOT 1
- Hello World error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sml.