Changes between Version 1 and Version 2 of ModularizationAndReuseWithOperatorLibraries
- Timestamp:
- 04/20/08 12:46:43 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModularizationAndReuseWithOperatorLibraries
v1 v2 7 7 8 8 = Ideas = 9 == Using-Operator == 9 == Import-Operator == 10 One simple and rather straight-forward idea to overcome the code-duplication problem is to create an 'import-operator that loads operators from an operator-library into the scope-tree at runtime. Instead of dragging the operator from the operator-library into the operator-graph at 'design-time' one would use an import-operator as one of the first steps in the operator-graph and define which operator-library file should be loaded. At the points where one of the library-operators should be used an `OperatorExtractor` can be used as a placeholder for the appropriator operator in the library. The `OperatorExtractor` can be easily configured with the name of the library-operator. 10 11 12 To prevent problems of duplicate operator-names in different operator-libraries it would be easy to add a namespace mechanism. We could just use a different name prefix for the injected operators of each operator-library.