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
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
  • 86
  • 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,397
  • 5
  • 28
  • 44
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…
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
  • 2,479
  • 4
  • 33
  • 68
1
vote
0 answers

How to use graphviz in my java program to draw the state chart

I want to use graphviz to draw the statechart in my java program to show the flow. How to use the Graphviz program in my java program to draw the state charts.
Ameer
  • 612
  • 1
  • 11
  • 27
0
votes
1 answer

Can composite states contain do actions?

I know that composite states are composed of internal states which show how the state behaves. Can you also have a do action when the state is active? this is like showing parallel behavior in the state and seems strange.
vainolo
  • 6,681
  • 3
  • 20
  • 45
0
votes
3 answers

How to know what function a function is inside?

I am trying to create a statechart framework as a sparetime project. CoffeeScript Statechart.state "A", -> @state "B1", -> @state "C" @state "B2", -> JavaScript Statechart.state("A", function() { this.state("B1", function() { …
ajsie
  • 70,516
  • 97
  • 259
  • 375
0
votes
0 answers

Agent to another Agent communication in AnyLogic

I have 4 different types of agents in main and I wanted to trigger a transition of the statechart of another type of agent type. various agents I needed to trigger the this transistion in the EndMileMode agent after receiving a message when the…
0
votes
1 answer

Setting up an AnyLogic state chart to add 1 at a given rate

I have a system dynamics calculation which is currently working extremely well using a single parameter value however I would like it to source from a database. Using this AnyLogic help I have set up the parameter to source from the…
0
votes
0 answers

How to make 2 orthogonal boost statechart states processing the same event?

Below is a simple state machine named SM : When being in S2 state, how can I make the Ortho1a and Orthoa2 orthogonal states react on a single Ev2 event ? SM is a sequential boost state machine. The observed behavior is that any…
sylwa06
  • 55
  • 7
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
  • 55
  • 7
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
  • 55
  • 7
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…
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