Conditional State Execution in Diagram Modeling
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional state diagramming environments in technical computing environments do not adequately support the conditional execution of states and their actions, limiting the efficient modeling and simulation of event or mode-driven systems.
Innovation Solution
The implementation of a technical computing environment that includes a state diagram modeling tool capable of conditionally executing states, allowing for the association of condition statements with states and substates, enabling the execution of actions only when specific conditions are met, and facilitating efficient translation to computer code or hardware descriptions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If conventional state diagramming environments are used, then basic state modeling is supported, but conditional execution of states and actions is not adequately supported
Solution Approach 1:
The state execution is segmented into conditional and unconditional parts. A condition statement is associated with each state, and only when the condition evaluates to true does the state execute its actions. This segmentation allows precise control over state execution while maintaining reliable modeling of complex systems with transient errors and conditional behaviors.
2Productivity
If conditional execution is implemented, then modeling efficiency is improved, but system complexity increases
Solution Approach 1:
The state diagram model performs self-evaluation of conditions automatically during simulation. When a state is entered, the associated condition statement is automatically evaluated, and actions are executed only if the condition is true. This self-service mechanism improves modeling efficiency by eliminating manual intervention while managing complexity through automated condition checking rather than complex control logic.
3Reliability
If states are always executed, then complete coverage is achieved, but transient errors cannot be handled efficiently
Solution Approach 1:
The condition statement associated with each state serves as a preliminary check before execution. If the condition evaluates to false (indicating a transient error or invalid state), the state actions are prevented from executing. This preliminary anti-action approach handles transient errors efficiently by stopping execution before erroneous actions occur, saving simulation time while maintaining reliability.
Data Source
AI summary
A system generates a state diagram model in a graphical modeling system, where the state diagram model includes at least one state. A condition statement is associated with the at least one state, and defines a condition upon which one or more actions associated with the at least one state are executed.


