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
1 answer

Anylogic statechart with loops to set 3 suites as idle or scheduled

(Main.java:935)__(NPE Error Image) I have 3 identical suites represented as an agent type ProductionOrder. A button on main sends a call to inject to the source on main. The source creates a ProductionOrder agent and has the following code in its…
1
vote
1 answer

How do I depict a return statement in an UML state machine?

Is it possible to display a return statement as the description of a transition in an UML statechart? Is there any defined syntax or convention? Example: int doSomething() state 1 --- return doSomething() ---> state 2 I didn't find anything fitting…
Yeliz
  • 25
  • 8
1
vote
2 answers

UML Statechart Diagrams + Navigation Bar + Multiple exit actions

Hope all is well! I am making a UML statechart diagram for a website. If you have a navigation bar, would/can you have multiple exit actions representing each link?
galal27
  • 51
  • 8
1
vote
0 answers

Qt state charts: How to invoke a compiled state machine?

Having read the SCXML invoke example I ask myself how this should work if you want to invoke a state machine that was compiled to C++ code using qscxmlc. I noticed that it is possible to invoke another state machine by using the src attribute in the…
Nils
  • 12,129
  • 17
  • 78
  • 103
1
vote
1 answer

How to create dependencies in statechart?

Example StateChart I've got a system, that is depending on another system. I want to display this in a statechart. System 1: microwave_state with two states: On and Off When microwave_button is pressed AND system 2 current state is true, then…
aydogdu
  • 115
  • 1
  • 8
1
vote
1 answer

Use-case, class and statechart diagram examples

I wish to learn about the diagrams mentioned in the title but on the internet one can find a lot of trash, I have seen some that contradict each other. Hence I wish someone experienced if they could spare a minute to direct me to reliable sources…
agiro
  • 1,808
  • 1
  • 22
  • 49
1
vote
1 answer

Anylogic - Understanding communication between agents

Consider two agents, with statecharts. Now I have read that the two are able to communicate or make use of each others statecharts, via messages. Now, the question is, how does this method of communication work ? As in does a message initiate the…
mahesh Rao
  • 313
  • 2
  • 13
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

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
  • 71
  • 9
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…
users at 4325010
  • 3,596
  • 4
  • 28
  • 46
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
  • 6,320
  • 5
  • 34
  • 62
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,232
  • 14
  • 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
  • 377
  • 1
  • 2
  • 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-…
lee
  • 641
  • 4
  • 11
  • 27