1,760 questions
0
votes
0
answers
29
views
Designing a Start/Stop Mechanism for a Stateflow State Machine
I have modeled a simple state machine in Stateflow (Simulink). I want to start the state machine with an external signal (start). When activated, it should set the flag FSM = 1, indicating that the ...
-1
votes
1
answer
85
views
In a System Verilog FSM can a repetitive State be converted to a Task?
I'm writing an FPGA state machine in System Verilog to read bytes from a SPI port and parse them into commands to the FPGA. The "RXSPIBITS" state is used to read SPI bytes by multiple other ...
0
votes
0
answers
114
views
Designing a Flexible FSM in Haskell with Typeclass States
I'm trying to build a simple Finite State Machine (FSM). Intuitively, I've described each finite state as a typeclass:
class FS st where
fsUpdate :: st -> StatefulEntity -> StateMondad st
...
0
votes
0
answers
36
views
Concurrent state error on plantuml diagram
I am working on a plantuml diagram for a project.
@startuml
[*] --> Kiosk
state Kiosk {
[*] -right-> Init_Path
Init_Path : entry/ ret = Initialize()
Init_Path --> ...
0
votes
0
answers
34
views
Entry action is not working in case of Xstate machine from some non-initial state
I have a sample Xstate state machine here: https://codesandbox.io/p/sandbox/divine-bird-3c9mpx
For my usecase, I am starting state machine from a state given by user (not the initial state - ...
0
votes
0
answers
40
views
Spring State Machine Transition Action Failure is not propogated
The following state machine transition must fail and caller should be aware of that failure.
...
transitions
.withExternal()
.source(NEW.name())
...
2
votes
1
answer
807
views
Step Functions JSONata MapIterator Bug
When I have this input
{
"input": {
"bucket_name": "ml-platform-qa-us-east-1",
"object_keys": [
{
"Key": "aws/lambda/...
1
vote
0
answers
72
views
How to catch exceptions in the processing of actions In the Spring boot State Machine?
I created a custom listener for my state machines and overridden the StateMachineListenerAdapter in this configuration, but my exceptions in actions are not caught in this listener.
This is my ...
1
vote
1
answer
144
views
How to recursively calculate all paths to a terminal state in an iterated system with two state variables? [closed]
Compute the number of ways to reach the terminal state (A = 1) using recursion.
Consider an iterated system with two state variables A and B.
A can have a values of 0 or 1
B can have a value of 0,1,...
0
votes
1
answer
84
views
How to access state machine elements from sub-state machine?
I'm using boost::msm for state management in a robotics application. I have an outer state machine that controls the main flow and includes states such as Idle, Operating, and Error. The Operating ...
1
vote
1
answer
202
views
How to transition multiple states in a predefined sequence in dependence of the current state using `python-statemachine` events syntax?
Motivation
I would like to simulate a machine using the impressive python-statemachine package. It is the first time I've read about the concept of State Machine, so I've been spending about one day ...
-1
votes
1
answer
133
views
What is the average performance benchmark on AWS Step Functions?
We adopted AWS Step Functions a couple of months ago. We expect a lot of payload to run through each (~1M records) in the near future and we're busy testing performance. The results on almost a blank ...
0
votes
0
answers
64
views
Why is my state machine causing Segmentation fault? [duplicate]
context.h:
#include <sstream>
#include <memory>
#include <iostream>
using namespace std;
enum class StatusType
{
INVALID,
INIT,
EXCE,
SIZE,
};
class MsgContext;
...
0
votes
0
answers
41
views
How can I get response back in my Order Controller after executes all Consumers using SAGA State machine
I am using Request Response Pattern for making sure that the proper work flow done sequentially, I have 3 Projects
Order.API
OrderPayment.API
OrderConfirmation.API
It is properly executing each ...
0
votes
1
answer
185
views
Using state machines instead of coroutines [closed]
Within my Unity game I have various NPCs that do different tasks at different times. Everything is coded using coroutines as it's all I knew when starting out. The NPC will use a coroutine to decide ...
-1
votes
2
answers
101
views
Using multiple if checks instead of state machines
I've been trying to implement shapeshifting mechanic to my game. And there are three current modes that you can switch between. But there seems to be a problem with the if checks im using or the way ...
-1
votes
1
answer
54
views
How would I reference a variable only in an inherited class?
So for a game I'm developing I'm using a inheritance based finite state system for enemy and boss AI. However I'm coming across a few issues with its implementation.
The base state class is inherited ...
3
votes
0
answers
49
views
Event Bubbling in Hierarchical State Machine (HSM)
Assume the following setup
We are in state A0.
What happens if the "EVENT" event is triggered?
Technically "A0" specifies how to handle the "EVENT" event. But the guard ...
0
votes
0
answers
54
views
Enemy AI not working correctly using state machine
so i made a state machine for my game but my problem is that when the enemy "sees" the player it switches from idle to attack skipping chase state and the enemy never moves. Also it doesn't ...
2
votes
1
answer
52
views
UML local/external transition through multiple hierarchy levels
Can someone tell me how the depicted transitions work in UML,
what entry exit transitions are executed?
What's the order of execution, assuming the transitions have actions associated with them?
Is ...
0
votes
1
answer
89
views
Is there a universal state machine or petri net model that covers all possible BPMN paths?
I am working on developing a BPMN chatbot and need a comprehensive solution to model all possible BPMN paths. Specifically, I'm looking for an existing state machine or Petri net implementation that ...
3
votes
2
answers
618
views
State transitions if condition is true on entry or becomes true later
I am developing a state machine model in MagicDraw. Very nearly all of my state transitions are doubled up, as this is how I was told to do it during the handover period.
ie, between two states I will ...
1
vote
0
answers
64
views
Unity won't allow me to assign a child object to a variable of type parent object
I am creating a Finite State Machine for use in Unity for an enemy in a game.
All the states are made from an EmptyState.cs blueprint that defines the state exit, update, and start functions, and all ...
-2
votes
1
answer
96
views
Cannot get modules to connect properly using wire connections through a finite state machine (FSM)
My project is essentially a song player that doesn't actually output sound but instead outputs the note (i.e. A, G, D, B) on the Basys 3 FPGA 7-segment display with the specified timing using flags.
I'...
0
votes
1
answer
57
views
Pylance throwing errors in state machine implementation : "sysCheck" is incompatible with "ResetState"PylancereportAttributeAccessIssue
Im trying to make a statemachine in python (I know there is a module, im trying not to use those) and it is giving me an error for the reassignment, and I was wondering if I even needed to worry about ...