Traversal Semantics in Object Graphs
نویسندگان
چکیده
Traversal through object graphs is needed for many programming tasks. We show how this task may be specified declaratively at a high level of abstraction, and we give a simple and intuitive semantics for such specifications. The semantics, while intuitive, requires existential quantification over all object graphs to represent the fact that during traversal we have only local knowledge of the graph. Since we cannot search explicitly over all object graphs, we reduce the infinite quantification to a graph problem over the class graph. The algorithm is implemented in a Java library called DJ. The system is aspect-oriented in that it makes a clear separation between traversal and behavior, and it is adaptive in that it relies on reflection to fill in the details of the traversal algorithm at run-time.
منابع مشابه
A Simple Semantics for Traversals in Object Graphs
Traversal through object graphs is needed for many programming tasks. We show how this task may be specified declaratively at a high level of abstraction, and we give a simple and intuitive semantics for such specifications. The algorithm is implemented in a Java library called DJ.
متن کاملNavigating through Object Graphs Using Local Meta-Information
Traversal through object graphs is needed for many programming tasks. We show how this task may be specified declaratively at a high level of abstraction, and we give a simple and intuitive semantics for such specifications. The algorithm is implemented in a Java library called DJ.
متن کاملDeclarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey
One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...
متن کاملStrategic Port Graph Rewriting: An Interactive Modelling and Analysis Framework
We present strategic port graph rewriting as a basis for the implementation of visual modelling and analysis tools. The goal is to facilitate the specification, analysis and simulation of complex systems, using port graphs. A system is represented by an initial graph and a collection of graph rewriting rules, together with a user-defined strategy to control the application of rules. The strateg...
متن کاملLeightweight Analysis of Operational Specifications Using Inference Graphs
The Amalia framework generates lightweight components that automate the analysis of operational specifications and designs [16]. A key concept is the step analyzer, which enables Amalia to automatically tailor high-level analyses, such as behavior simulation and model checking, to different specification languages and representations. A step analyzer uses a new abstraction, called an inference ...
متن کامل