[Paper Review] Towards rule-based visual programming of generic visual systems
This paper introduces DiaPlan, a rule-based visual programming language grounded in graph transformation theory that supports object-oriented programming, hierarchical graph structuring, and typing. It enables generic visual system development by allowing domain-specific diagram notations to be defined and manipulated through a reusable, extensible framework built on the DiaGen toolset, achieving full customization of visual syntax and semantics for diverse application domains.
This paper illustrates how the diagram programming language DiaPlan can be used to program visual systems. DiaPlan is a visual rule-based language that is founded on the computational model of graph transformation. The language supports object-oriented programming since its graphs are hierarchically structured. Typing allows the shape of these graphs to be specified recursively in order to increase program security. Thanks to its genericity, DiaPlan allows to implement systems that represent and manipulate data in arbitrary diagram notations. The environment for the language exploits the diagram editor generator DiaGen for providing genericity, and for implementing its user interface and type checker.
Motivation & Objective
- To address the lack of support for object-oriented and modular graph programming in existing visual rule-based languages.
- To enable the definition of domain-specific visual notations for graphs, allowing tailored user interfaces for different application domains.
- To provide a type-safe, extensible framework for implementing visual programming environments that can be customized for various diagrammatic representations.
- To integrate a generic visual editor and type checker via the DiaGen tool, ensuring reusability and maintainability of the system.
- To lay the foundation for a full-featured, extensible visual programming environment that supports transformations, typing, and interactive editing of structured graphs.
Proposed method
- The language is based on graph transformation, where rules define how graphs are modified, with variables and substitutions used to instantiate and apply rules.
- Graphs are hierarchically structured using frames that contain nested subgraphs, enabling modular and object-oriented manipulation of complex data structures.
- A typing system is defined recursively to specify and enforce the shape of graphs, enhancing program correctness and security.
- The DiaGen tool is used to generate the user interface and type checker, enabling customizable visual syntax for graphs in the domain-specific notation.
- The system architecture separates the interpreter (executing transformations), compiler (validating programs), and visual editors (for input and program construction), all generated via DiaGen specifications.
- The implementation relies on DiaGen's abstract machine for graph transformation and extends it with support for class-based structures and domain-specific diagram rendering.
Experimental results
Research questions
- RQ1How can a visual programming language support both rule-based transformations and object-oriented structuring of graphs?
- RQ2What mechanisms enable type safety and shape constraints in a visual, rule-based programming language for graphs?
- RQ3How can a visual programming environment be made generic enough to support arbitrary diagram notations specific to different application domains?
- RQ4What architectural patterns allow for the automatic generation of user interfaces and type checkers from a single specification?
- RQ5To what extent can graph transformation systems achieve performance comparable to textual functional or logic programming languages, despite NP-hard subgraph isomorphism in rule matching?
Key findings
- DiaPlan successfully integrates rule-based programming, object-oriented structuring, and graph typing into a single visual language, enabling secure and modular development of visual systems.
- The use of frames allows hierarchical graph structures to be manipulated in a modular way, preserving modularity across transformation boundaries.
- The language supports domain-specific visual notations through DiaGen-generated editors, enabling the creation of user interfaces tailored to specific application domains.
- The type system is defined recursively and enforces graph shape constraints, improving program correctness and reducing runtime errors.
- The system architecture leverages DiaGen to generate both the user interface and type checker, significantly reducing implementation effort and increasing maintainability.
- Although the implementation is still in early stages, the design demonstrates feasibility of building a full-featured, extensible visual programming environment based on graph transformation with genericity and typing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.