Multi-Instantiable State Templates for Dynamic Switching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Traditional statechart environments face inefficiencies in modeling systems with multiple state machines that require dynamic switching, leading to suboptimal logic, overhead, and inefficient code generation.
Innovation Solution
The implementation of multi-instantiable state templates allows for the graphical definition and rapid switching between independent state machine objects within a statechart, enabling efficient transitions and configuration management through methods like start, stop, reset, and execute, along with automatic code generation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple independent state machines are modeled as separate charts in embedded subsystems with global variables, then the system can represent complex multi-state machine behavior, but the logic complexity and overhead increase significantly
Solution Approach 1:
The patent creates a universal state machine template that can be instantiated multiple times within a single statechart. This template defines common structure, methods (start, stop, reset, execute), and data interfaces that all state machine instances share, eliminating the need for separate embedded subsystems for each state machine while reducing overall system complexity.
Solution Approach 2:
The state machine functionality is segmented into a reusable template definition and multiple independent instances. Each instance can be independently controlled through method calls (start, stop, reset, execute) and can maintain its own state and data while sharing the common template structure, allowing complex multi-state machine systems to be modeled with reduced overhead.
2Adaptability or versatility
If conventional statechart environments are used with multiple embedded subsystems, then different state machines can be represented, but the code generation efficiency decreases
Solution Approach 1:
By creating a universal state machine template that can be instantiated multiple times, the code generation process only needs to generate the template code once and then replicate it for each instance. This dramatically improves code generation efficiency compared to generating separate code for each embedded subsystem while still supporting multiple state machines with different configurations and states.
3Speed
If rapid transitions between state machines are required, then dynamic switching capability is needed, but traditional disabling and enabling of subsystems creates inefficiency
Solution Approach 1:
The patent implements dynamic switching between state machine instances through method calls (start, stop, reset, execute) that can be invoked at any point during statechart execution. This allows rapid transitions between different state machine instances without the overhead of disabling and enabling entire embedded subsystems, as each instance can be independently activated or deactivated through simple method calls while maintaining its internal state and configuration.
Data Source
AI summary
A method of providing multi-instantiable state templates to a statechart environment is discussed. The method includes the step of providing a graphical definition of an independent state machine object belonging to a statechart. The method further includes the step of instantiating a first instance and a second instance of the independent state machine object in the statechart. The method additionally includes the steps of starting execution of the first instance of the independent state machine object and then stopping execution of the first instance of the state machine object. Additionally, the method includes the step of starting the execution of the second instance of the independent state machine object in the state diagram.


