Questions tagged [statechart]

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.

116 questions
0
votes
3 answers

Transition Action and Condition Action in Stateflow

In the below two state charts , the first one has an action to perform when it moves from StateA to StateD , ie. /{z=5}; and the second one has to perform the action {z=5}; I understand that this is a Transition Action , but i am unable to…
beastboy
  • 153
  • 1
  • 2
  • 9
0
votes
1 answer

Anylogic - statechart - set value continuously

I am trying to model a steam network with system dynamics. There is one stock A that has a flow into stock B. I've implemented a statechart that has the following states "FillLevelMin", "FillLevelOk" and "FillLevelMax". When the statechart enters a…
Josie
  • 7
  • 3
0
votes
1 answer

Anylogic CompareRuns does not execute Main Agent

I am working on an agent-based model and now I'm trying to experiment with CompareRuns. when I execute the experiment, it should simulate the model several times and after each simulation, a dataset of sample data should be filled. there is also a…
0
votes
1 answer

How can I run agents simultaneously in Anylogic?

How can I run agents simultaneously in Anylogic? when I define some agents in Anylogic and then run program, all agents did not run simultaneous. which means that all agent stay in first state then one of them go's some state and others wait until…
soheil
  • 33
  • 4
0
votes
2 answers

AnyLogic - Why does my condition based transition not work?

I have a question related to a transition in my statechart (see image above). I have a variable called palletInUse which is a boolean-type and changes between true and false. For one transition in my statechart I want it to change when the variable…
0
votes
0 answers

boost statechart store/retrieve data in state machine doesn't work

I want to share something among states, for example, a mode variable. I save it to the state machine. However, I can not even access its value. struct InitState; struct MyFsm : boost::statechart::state_machine { uint8_t mode; …
Gabriel
  • 197
  • 1
  • 9
0
votes
2 answers

action as state in UML state diagram

In this video a part of an UML state chart can be seen : However, the "provide funds" state is an action. How does that make sense ? Is it possible for a state to be an action (verb) ? Should the "provide funds" action not be rather a transition…
jhegedus
  • 18,516
  • 11
  • 84
  • 147
0
votes
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
  • 456
  • 4
  • 19
0
votes
1 answer

Boost statechart - compilation error when using state chart as template parameter

I'm trying to implement a simple state machine using boost statechart. Since I have several variation of this state machine, I thought it might be a good idea to wrap it in a template and pass the state machine as template parameter. However, I'm…
oferlivny
  • 280
  • 4
  • 15
0
votes
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
  • 12,226
  • 19
  • 85
  • 163
0
votes
0 answers

Boost statechart Assertion `reactionResult_' error

I have the following boost::statechart state: struct PendingWFInfo : bsc::state { bool success; PendingWFInfo(my_context ctx) : my_base(ctx) { std::cout << "[+] PendingWFInfo" << std::endl; success =…
juls
  • 1
0
votes
1 answer

How were the state charts drawn in Miro Samek's "Practical UML Statecharts in C/C++"

What software package was used to draw the statecharts in Miro Samek's "Practical UML Statecharts in C/C++"? Edit: Miro Samek provided excerpts from his book on his website. Page 42 of the linked PDF provides an example diagram.
LogicG8
  • 1,647
  • 14
  • 21
0
votes
2 answers

State machine timer self transition

Please explain to me if I get right the meaning of these 3 state machines. 1, StateA Enter action is called (which is nothing at the moment) and then the timer is set up. When the timer triggers Acion1 is executed, then the StateA Exit action (also…
user2281723
  • 409
  • 4
  • 15
0
votes
1 answer

Communication between two state machines in Java

I've been using a simple eclipse plugin to create visual state machines, called statecharts, that also uses Java code to work. My overall goal is to make two state machines communicate with each other through sockets and exchange data and make…
Tina J
  • 3,411
  • 8
  • 39
  • 93
0
votes
2 answers

From state chart to state table

Is there any way to get a state table from a IBM Rhapsody Statechart diagram? Opening the generated .rpy file and trying to manually generate one is not such a good idea...
bilserial
  • 622
  • 13
  • 31