A statechart is a hierarchical state machine, introduced by Harel. Since it is hierarchical, its capability to reduce complexity and state proliferation allows to be used also for real-world problems and not only for toy or theoretical examples. The UML state diagram is an OO adaptation of the Harel statechart.
Questions tagged [statechart]
133 questions
1
vote
0 answers
AB modeling in anylogic (statechart)
I have a problem where the state of one agent depends on the states of its components. Like I have a machine which consists of 10 different components. each one has its own state chart( the states could be; Operating,failed, under…

Samar
- 11
- 3
1
vote
1 answer
/Entry in an UML state diagram with VHDL
I'm implementing an UML state diagram with VHDL using case statement. do/ and exit state activities are easy to implement. However, does anyone know how to implement the entry state activity in an efficient way?
I thought of adding a flag to…

ferdepe
- 510
- 1
- 6
- 21
1
vote
1 answer
AnyLogic - moving agents between states
I'm having trouble with AnyLogic...what I want is to write a code to move an agent to a specified state inside a statechart...how can I do?
I have the following statechart
At the beginning I want to put 1 agent inside Ip...
I have opened some…

GhettiG
- 91
- 9
1
vote
1 answer
What's an OR and AND decomposition in statechart diagrams?
I was reading about statechart diagrams, which are diagrams that model the different states that one or more instances of one or more classes can be.
An object can go from one state to the other through a transition, which is represented using arrow…

nbro
- 15,395
- 32
- 113
- 196
1
vote
2 answers
Statecharts: Limit the number of time a state gets executed
How can I graphically represent within Statechart Diagrams that a state never gets executed more than a certain amount of times? So that it doesn't end in an infinite loop. Something like
assert enterPIN(int p) <= 3
and then branch to another…

Dimitar
- 4,402
- 4
- 31
- 47
1
vote
1 answer
UML state charts: completion transitions
In the context of UML state charts with the run-to-completion model, how are "completion transitions" processed?
The completion of a state inserts a "completion event" at the beginning of the event queue and the "completion transition" is thus only…

ARF
- 7,420
- 8
- 45
- 72
1
vote
2 answers
Auto position nodes in statechart in GOJS
I want to have "loc" value (positioning value eg. loc = "10 10") automatically calculated for statechart according to number of nodes in GOJS. Is there any specific attributes or commands to do it ?

Sagar Dev Timilsina
- 1,310
- 15
- 32
1
vote
1 answer
Describe transition of a class in UML's Statechart Diagram
I read that Statechart Diagram is generally used to describe transition of an object. One of those objects is a class.
Could you give me an instance of how to generate statechart diagram showing transition of a class in OOP programming?
I've googled…

januaryananda
- 397
- 1
- 5
- 15
1
vote
1 answer
switching to time edit mode of digital watch in statechart diagram in eclipse
I have a question:
I'm dealing with a digitalwatch.sct state chart model right now.
When the bottom right pressed for at least 1.5 seconds, the digital watch should switch time editing mode.
How can I manage to do it, which kind of strategy or…

yeniden
- 91
- 1
- 1
- 7
1
vote
3 answers
state machine for a cd writer
As a newbie am trying to develop a state machine using Visio for a cd writer. below are the device operations/transactions and attached, is a diagram of what I've done so far, am unsure if its accurately represented.
Device operation
Load button-…

Abiodun
- 959
- 6
- 17
- 38
1
vote
2 answers
Is there any clear difference between event and state
This question is a bit philosophical and is like "data and code are the same thing or not".
Is there any clear difference between event (signal) and state?
Example:
For example, there is a car passing by the road. When the car horns, a man…

ceremcem
- 3,900
- 4
- 28
- 66
1
vote
2 answers
StarUML statechart transition line overlapping
I'm trying draw statechart in StarUML, found that the transition line overlapping. I want some transition line separated like this:
------
( stop )
------
| ^
t | | p
v |
------
( play )
------
but always got the transition…

Sunline
- 126
- 1
- 4
1
vote
2 answers
How do you represent an asynchronous action that can modify the program state in a statechart?
I have an action that does 2 things, first it will change the application state and second it makes a call out to a webservice. When the webservice sends it's response, it will affect the current application state.
Lets say I have the above setup.…

Matt R
- 2,577
- 5
- 30
- 46
1
vote
2 answers
UML Statecharts or state machine in parallel region
I'm now looking for a book mainly focusing on UML statecharts in parallel region. It's pretty hard to find one. Most of the book only contain so little information and I wonder whether there is a book concentrating on this topic. If there is, I…

user2793136
- 11
- 1
1
vote
1 answer
Uml Statechart diagram with multiple transitions outgoing from initial state
I'm a novice Uml guy
I want to know if it is possible to have multiple transitions outgoing from the initial state in a statechart diagram

Hakim
- 3,225
- 5
- 37
- 75