question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem defining more than one action with the same transition path

See original GitHub issue

I am trying to define two distinct actions that have the same transition path. Example:

State_A 'action_a' -> State_B;
State_A 'action_b' -> State_B;

I get an error like this: JssmError: already has "State_A" to "State_B" But it makes sense to have to different actions (as they may have two distinct state transition meaning) that define transition conditions.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
StoneCyphercommented, Jul 15, 2022

closing here because you’re chatting there

0reactions
StoneCyphercommented, Jul 14, 2022

I agree that this is a desirable thing

The reason I’m dragging my heels is that a huge portion of the codebase is written with the assumption that you can ask the machine for the edge between a and b, and get an unambiguous answer

To do this would break that, which is a massive breaking change and also would mean a whole bunch of stuff would need to move to being container based, which would probably slow things down by an order of ten

I have kicked around the idea of saying “it’ll return the main path and only main path has this restriction” but that still breaks older machines written without main paths

I’m still thinking over what I think is the right thing to do here

Would you be okay with my closing this, and talking on StoneCypher/fsl#325 instead, please? There are ~30 repos and it’s hard to keep track of things if they’re not all in the same place

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect Modeling Errors During Edit Time - MATLAB & Simulink
Solution: Create no more than one unconditional transition from each state or junction. Explicitly specify that the unconditional transition executes after any ...
Read more >
Transition Path Theory | SpringerLink
The dynamical behavior of many systems arising in physics, chemistry, biology, etc. is dominated by rare but important transition events between long lived ......
Read more >
How can I take actions and states when my transition between ...
I have a model whose states depend on multiple actions; I can take a single parameter as action, but what if the state...
Read more >
AI: Solving problems by searching
Together, the initial state, actions and transition model implicitly defined the state space of the problem – the set of all states reachable...
Read more >
State Machine Diagram - UML 2 Tutorial - Sparx Systems
It is also possible to define actions that occur on events, or actions that always occur. It is possible to define any number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found