Composite Function Block Construction via Nested Paradigms
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing software design methods face challenges in achieving complete modularization and abstraction due to the limitations of high-level languages, which hinder the sharing of algorithms across different applications and industries.
Innovation Solution
A method for constructing composite function blocks by nested use of composite paradigms, where function blocks are selected, arranged, and concatenated to form a computation sequence, enabling the creation of a composite function block with a defined interface, thereby facilitating modularization and abstraction.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If traditional high-level language programming is used, then code can be written and executed, but modularization and abstraction are incomplete, hindering algorithm sharing across applications and industries
Solution Approach 1:
The patent divides software into discrete function blocks with standardized interfaces, where each block represents an independent computational unit. This segmentation enables function blocks to be selectively combined and reused across different applications, achieving complete modularization and facilitating algorithm sharing while reducing overall system complexity through compositional assembly.
Solution Approach 2:
The patent implements nested composition where function blocks can be contained within larger composite function blocks, creating hierarchical structures. Smaller function blocks are nested within medium-sized blocks, which are in turn nested within larger systems, enabling reusable algorithms to be composed at multiple levels of abstraction and deployed across diverse applications.
2Ease of manufacture
If function blocks are concatenated to form composite function blocks, then modularization is achieved, but the complexity of constructing and managing these composites increases
Solution Approach 1:
The patent defines a universal set of composite paradigms (sequential, conditional, looping, parallel) that can be applied to combine any function blocks regardless of their specific functionality. This universal composition framework simplifies the construction process by providing standardized patterns for creating composites, reducing the complexity of managing modular software structures.
Solution Approach 2:
The patent employs parameterized composition where the same composite paradigm can be instantiated with different function blocks by changing parameters such as block types, interface signatures, and connection configurations. This parameterization approach maintains ease of manufacture through template-based construction while managing complexity through systematic parameter variation rather than ad-hoc assembly.
Data Source
AI summary
A method and apparatus for constructing a composite function block, a composite function block, and a storage medium are provided. The method applies to a function block library and includes: selecting at least one composite paradigm from a plurality of composite paradigms; acquiring an arrangement operation for at least two function blocks of the plurality of function blocks to obtain a computation sequence; based on the computation sequence, performing a concatenation operation to determine a joining relationship between the at least two function blocks; and based on an interface of each function block of the at least two function blocks and the joining relationship between the at least two function blocks, encapsulating the at least two function blocks into a composite function block and generating an interface corresponding to the composite function block.


