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
Boost statechart : trying to implement the inner initial substate of an orthogonal state but compilation fails
seems I cannot implement a substate of an orthogonal state.
When I declare SlewingStartST as the initial inner state of SlewingST, compilation fails :
template < Tel aTel >
class SlewingST :
public sc::simple_state < SlewingST,…

sylwa06
- 77
- 10
0
votes
0 answers
Boost statechart fails to compile when using template state
compilation fails when I try to use my own template state complaining :
src/fsm2.cpp: In member function ‘boost::statechart::result SlewingST::react(EvTelLost)’:
src/fsm2.cpp:159:13: error: there are no arguments to ‘discard_event’ that depend on a…

sylwa06
- 77
- 10
0
votes
1 answer
Send events to parent statechart in multi state machine modeling in Yakindu
I have 2 statecharts, one being the parent and the other being the child. When the parent statechart is created, it also creates a child statechart using
import: "Child.ysc"
var child: Child
The parent statechart can easily raise an event in the…

Sylvain Elias
- 21
- 1
- 6
0
votes
1 answer
How to compare conditions of an agent with all connected agents in statechart
I am working on my thesis associated with modeling farmers' behaviors in a river basin. I am having 6
agents that contain different populations of farmers. These farmers have been located on the GIS map as the environment (main) in anylogic. I also…

Fariba
- 11
- 1
0
votes
1 answer
Problem: rack is occupied. Is it possible to remove agents from a racksystem without using them in a flowchart?
I am modeling order picking in anylogic: At the moment I create a population of agents and give them to the enter-block via an event. This block is connected with a rackstore block and puts the agents in the racksystem. In a statechart of a person…

Catwoman
- 5
- 2
0
votes
1 answer
Simulating limited resources with Agent-Based Modeling
I am making an Agent-Based Model in AnyLogic where agent behavior is described in Statechart. I want to allocate certain resources to those agents (primarily rooms, in form of nodes), which is spatially placed in a blueprint of a certain building.…

Gaute
- 49
- 7
0
votes
0 answers
How can I send/copy selected parameters of an agent to other agents before its deletion?
I have an agent A. The agent has some parameters. The agent is performing a task. When he completes it, the agent is deleted.
In the meantime, further processes take place in other agents (B-D). In the last step of the process agent (E) is created.…

Sihem
- 1
- 1
0
votes
1 answer
How can we change 3D animation object (agents representation) color based on statechart?
I have a person agent who has a 3D representation of a man (default 3D pic of a human from anylogic). Can we change color of that 3D person agent's representation based on states? For example, when a agent moves from state A to B, it will change…

Tariq
- 57
- 6
0
votes
1 answer
Is it possible to run through several states in one statechart at the same time?
Is it possible to run through several states in one statechart at the same time?
My simulation model is agent-based.
A) At the moment I consider my process as a continuous chain for simplicity. This means that only when the product is ejected from…

Sihem
- 1
- 1
0
votes
0 answers
Nested State-Machine C++
first time in Stackoverflow! I am quite new in C++ and OOP and I am currently struggling with a problem when trying to design a StateChart in C++.
I have found some documentation explaining how to create a State Machine with n-states and an example…

WTI_Carmelo
- 1
- 1
0
votes
1 answer
How can I repeat a statechart under a certain condition?
How can I repeat a statechart under a certain condition? I don't want to make a transition back to the first state.
For example Agent A has a statechart. And Agent B also has a statechart. The last states in Agent A are contained at the beginning of…

Sihem
- 1
- 1
0
votes
1 answer
Is it possible to show all statecharts from different agent at the same time during execution?
I have several agents.In each agent, I've made a state chart. Some states overlap with other states from other agents. With my simulation I want to show in which state an agent is currently in.
Is it possible to show all statecharts at the same…

Sihem
- 1
- 1
0
votes
1 answer
How I can send command to the person agents living in one specific GIS region? Consider there are several GIS regions
Suppose there are 1000 Person agent on 4 (a,b, c,d) GIS region area. On a certain event, I want to communicate with all the agents living inside GIS region "a" . In "a" region we have 200 person agents.If I send message or command to Person state…

Tariq
- 57
- 6
0
votes
1 answer
Trigger new state with more than one message?
I'm trying to trigger a new state in a statechart with one message or another. Think about "waking up" a sleeping laptop with a message like "mouse click" or "keyboard stroke". Either action would wake it up, so how can you set that up?
I've tried…

Brian Babo
- 39
- 4
0
votes
1 answer
Boost MSM: using state machine itself as implicit top level state
I have a state machine with states A, B and C. C handles event e directly, while A and B do not, but I want to fallback to a default handler (what Samek calls the "ultimate hook" pattern) for event e (that will be called when no handler is found in…

pmf
- 7,619
- 4
- 47
- 77