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
0
votes
1 answer
Using loops to set an agent type as idle that will accept an agent when in that state and reject if busy
I have 3 identical suites represented by one agent type for productionSuite and I want to use loops to set the suites as idle and busy. The agent of productionOrder needs to be sent to only the idle rooms.
I have a parameter of assignedSuite in the…

Harrison Pressman
- 15
- 3
0
votes
1 answer
How to use a state chart as the flow chart for an agent
I have two processes I want to juxtapose. The first is a Manual workflow that is well represented by the Process library. The second is a software System that performs the same work, but is better modelled as a state transition system (e.g. s/w…

brett
- 33
- 4
0
votes
1 answer
Concurrency in Rhapsody statecharts: state actions vs transitions
In IBM Rhapsody's statecharts, are there situations where a transition between state A and state B could happen before the actions in state A finished their execution?

Unstacked
- 13
- 1
- 2
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
- 157
- 1
- 3
- 11
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
- 4
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…

Behzad Mehrtash
- 356
- 2
- 5
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…

Koen Luppes
- 11
- 1
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
- 237
- 3
- 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
- 20,244
- 16
- 99
- 167
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
- 300
- 4
- 15
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,767
- 16
- 26
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
- 519
- 1
- 5
- 16
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
- 4,983
- 13
- 59
- 125
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...

mariusmmg2
- 713
- 18
- 37