Questions tagged [state-diagram]
71 questions
2
votes
2 answers
Confusion on the UML state diagram
I have referred quite a lot of materials online, I saw the usage of merge and junction is almost the same? Some sites said to use the diamond shape as a merge, some said to use junction. Can I know which one is correct? The following images are the…

Sam
- 19
- 5
2
votes
1 answer
What would be the better unit to draw state machine diagrams in SRS?
Recently I am working on a SRS documentation for my university project. When I draw the state machine diagrams I'm confused for what parts should I draw it. Is that for the components? or for the classes?
Clearly the inherent state of the object…

randie pathirage
- 55
- 4
2
votes
1 answer
UML state diagram: What is the difference between a choice and a junction?
In an UML state diagram, branches in the process flow can be modeled using choice elements (represented by a diamond-shaped symbol) with conditions on the outgoing transitions (see example).
On the other hand, junction elements (represented by a…

Gerd
- 2,568
- 1
- 7
- 20
2
votes
2 answers
How to show name of choice elements in StarUML?
I'am creating an statechart diagram in StarUML and I want to show the name of choice elements in the diagram, but I don't know how to do it without adding a text annotation.
Do you know if it is possible?
Thanks!

jmartinalonso
- 2,324
- 1
- 19
- 22
2
votes
2 answers
Is there a standard diagram type with both state and activity?
I understand that a UML activity diagram describes an algorithm, so in a sense it's the modern version of a flow chart, while a UML state chart shows all the possible (or interesting) states an object or system can find itself in, and shows all the…

Tobia
- 17,856
- 6
- 74
- 93
2
votes
1 answer
C# - Coding a nested stateflow diagram
I have the following state diagram. I know how to make a simple state machine that transitions between non-nested states; however, I don't know how to transition between nested states. Could someone explain how to do this at an appropriately high…

weberc2
- 7,423
- 4
- 41
- 57
1
vote
1 answer
"Declarative" composite state with concurrent substates in UML
Given a System that contains two components, A and B, and
The System starts up A and B concurrently. Now A can go through states {A.Starting, A.Ready}, and B can be in states {B.Starting, B.DoingX, B.DoingY}. (Events to transition between A's and…

xtofl
- 40,723
- 12
- 105
- 192
1
vote
0 answers
How to display state diagram (FST) in PyCharm?
Below is the code:
# import the fst module
from nltk.draw import *
from nltk.nltk_contrib.fst.fst import *
# import the string module
import string
# Define a list of all vowels for convenience
vowels = ['a', 'e', 'i', 'o', 'u']
special = ['?',…

adstrumm_
- 73
- 4
1
vote
2 answers
How to determine the state in state diagram?
My system has more functions than it is shown inside the diagram but I am trying to do it based on the scenario.
My current scenario is that the librarian/admin is trying to delete a book record from the database, normal users can access the…

Chin
- 97
- 2
- 9
1
vote
1 answer
Why can't you generate a use case diagram from a state diagram?
Why can't you, for example, take a state diagram, and make use case diagram based on this state diagram?

Synthy Jericho
- 19
- 1
1
vote
1 answer
Modelling action use limit in Markov Decision Process
I have a Markov Decision Process with certain number of states and actions. I want to incorporate in my model, an action which can be used only once from any of the states, and when used cannot be used again. How do I model this action in my state…

rohit_r
- 623
- 1
- 6
- 18
1
vote
2 answers
State Machine Diagram - Two States for same object
I am diagramming a situation similar to Git, where you can have a single file in multiple states at once (i.e. a file with staged changes and unstaged changes). In this scenario, I have three main states:
Unedited file
Edited/unstaged file
Staged…

modelDBA
- 176
- 1
- 8
1
vote
1 answer
How to prevent orthogonal region transition for error handling
I want to create the following state machine, with Boost MSM:
I would like to be able to prevent the Error event to trigger the AllOk + Error == InError transition if the orthogonal state is on "B". For example, specifying transition for all…

Hugal31
- 1,610
- 1
- 14
- 27
1
vote
2 answers
State diagram and Transition table for a Moore machine
I have drawn a mealey machine for this circuit, with two states, however I can't draw a Moore machine state diagram, I don't understand how to do this.
The circuit is as follows :
The circuit is a Moore machine with one binary input X and one…

Jake Pillandfall
- 31
- 1
- 3
- 5
1
vote
1 answer
Handling Failures in State diagram
I have a system with 3 states. I wanted to handle failures. That is, when the system reboots, it doesn't know the state it's in. Is the following state diagram correct?

Hossein
- 1,152
- 1
- 16
- 32