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.

133 questions
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
  • 600
  • 1
  • 12
  • 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,907
  • 4
  • 24
  • 47
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
  • 77,632
  • 106
  • 276
  • 381
0
votes
1 answer

How can I make the interaction of the a statechart and a flowchart in anylogic?

I have 5 restaurants in my model and I want to simulate the impatience of clients in a specific queue,in order to lead the agent to another queue if the ServiceTimeRestaurant1 > MaxWaitingTime (variables that I create). I create these variables in…
0
votes
1 answer

Resolving Multiple Promises with Parallel state (XState)

I have an xstate state machine that has 3 states, idle, waitingForA and waitingForB. waitingForB, in turn is a type of parallel state. I would like to return to initial state of 'idle' on waitingForB is done. How do I accomplish this? idle: { id:…
0
votes
1 answer

In State Duration

How can I estimate the duration an agent stays in a specific state in a state chart? I want to count the number of times an agent enters a state and the duration before the transition us triggered to the other state
0
votes
1 answer

check state of another statechart agent type Anylogic

I am in the statechart of the one agent type (Person) and I want to send a message to another agent type (Person2) in a certain state (atHome), but when I use code below the program throws me an error for( Person2 m : main.person2s ) { if(…
0
votes
1 answer

In Anylogic, how to randomly select agents from a collection of collections

I am new to anylogic and am trying to build an agent-based model which randomly directs agents (vehicles) from a starting point (a Home location point on GIS map) to a selection of locations. I have 6 different sets of collections which have varying…
0
votes
1 answer

Statecharts for Redux

Current State Management Stack: React, RTK/Redux, and Redux-Saga Here's the high level issue. We have a complex flow and we don't have QA Engineering resources to be able to write the integration tests needed for this. This leads to the following…
Bobby Gagnon
  • 80
  • 2
  • 11
0
votes
1 answer

Graphviz - Connect cluster (subgraph) directly to a node

I want to connect a cluster edge to a node. Please find a simple Graphviz code below. Here is the online demo. digraph G { compound=true; node1 subgraph cluster0 { label="cluster" node2; } node2 -> node1…
0
votes
1 answer

How can I add doActivity behavior to a state machine's state in IBM Rhapsody?

I'm new in IBM Rational Rhapsody. I'm drawing a state diagram using IBM Rational Rhapsody (ver. 8.4.1) for a class that it contains several states. I can add entry/exit actions to each state easily but I don't know how can I assign a doActivity…
Anmk
  • 193
  • 1
  • 9
0
votes
1 answer

How to change font size of a single record item in Graphviz

I'm trying to create a state chart from Graphviz of type record. Please check the reference here. So here is the basic code: digraph lamp { node [shape=point,label=""]ENTRY node [style=rounded shape=record ] ON [label="{On| Some code…
0
votes
1 answer

how to render a better startchart graph on umple?

The umple is a very good to design UML statecharts, with rich set of semantic attributes in text mode. However, the embedded mechanism to draw correspondent statechart has scarce resources to show important informations (e.g. guards, exit, entry,…
0
votes
1 answer

How to trigger a condition transition using a cyclic event in AnyLogic?

I wanted to change the state of the agent(s) by a cyclic event(reset) as shown. What command should I used to trigger the transition(resetHome) every 24hrs after the first initial 12 hours?
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…
1 2 3
8 9