Abstract
We present a logic language with encapsulation based on an object-oriented data model. We give a formal account of the semantics of this language by defining a proof theory, a model theory and a fixed point theory. We also show that the different characterizations of the semantics are equivalent. We then study the logical foundations of encapsulation by introducing a mapping from our language to a corresponding modal language, and we show that the proof theory of the language is sound and complete with respect to the entailment relation of the corresponding modal framework. The proposed semantics represents — to our knowledge — the first attempt to capture a truly logical semantics of encapsulation in deductive object oriented languages.
Partially supported by “Progetto Finalizzato Sistemi Informatici e Calcolo Parallelo” of C.N.R. grant n. 93.00898.PF69.
Partially supported by grants from the Canadian Commonwealth Scholarship and Fellowship Plan and the University of Dhaka, Bangladesh. The author is on leave from the University of Dhaka, Bangladesh.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
A. Abiteboul. Towards a deductive object-oriented language. Data and Knowledge Engineering, (5):263–287, 1990.
A. Abiteboul and P. C. Kanelakis. Object identity as a query language primitive. In Proceedings of the ACM SOGMOD Int. Conference on the Management of Data, pages 159–173, 1989.
K. R. Apt and M.H. van Emden. Contributions to the theory of logic programming. Journal of the ACM, 29(3):841–862, 1982.
M. Baldoni, Giordano, and A. Martelli. A Multimodal Logic to Define Modules in Logic Programming. In D. Miller, editor, Proceedings of the International Logic Programming Symposium ILPS'93, pages 473–487. The MIT Press, 1993.
C. Beeri. A formal approach to object-oriented databases. Data and Knowledge Engineering, (5):353–382, 1990.
M. Bugliesi and H. M. Jamil. A Stable Model Semantics for Behavioral Inheritance in Deductive Object Oriented Languages. (Manuscript).
M. Bugliesi and H. M. Jamil. A Logic for Encapsulation in Object Oriented Languages. Technical Report 5, Dip. Di Matematica Pura ed Applicata, Universitá di Padova, 1994.
B. F. Chellas. Modal Logic: an Introduction. Cambridge University Press, 1980.
W. Chen and D. S. Warren. C-Logic for Complex Objects. In ACM SIGMOD Conference on Management of Data, 1989.
J.S. Conery. Logical objects. In R. A. Kowalski and K. A. Bowen, editors, Proc. 5th Int. Conference on Logic Programming, pages 420–434. The MIT Press, 1988.
C. Delobel, M. Kifer, and Y. Masunaga, editors. Proceedings of the 2nd International Conference of Deductive Object-Oriented Databases. Springer-Verlag, 1991. Appeared as LNCS 566.
G. Dobbie and R. Topor. A Model for Inheritance and Overriding in Deductive Object-Oriented Systems. In Sixteen Australian Computer Science Conference, Jannuary 1988.
G. E. Hughes and M. J. Cresswell. An Introduction to Modal Logic. Methuen & Co. Ltd, 1968.
S. Kamin. Inheritance in smalltalk-80: a denotational definition. In Proceedings of the ACM Int. Conf. on Principles of Programming Languages, pages 80–87, 1988.
M. Kifer, G. Lausen, and J. Wu. Logical Foundations for Object-Oriented and Frame-Based Languages. Technical Report TR-93/06, Department of Computer Science, SUNY at Stony Brook, 1993. (accepted to Journal of ACM).
W. Kim, J-M. Nicola, and S. Nishio, editors. Proceedings of the 1st International Conference of Deductive Object-Oriented Databases. 1989.
S. A. Kripke. Semantical Analysis of Intuitionistic Logic. In J. N. Crossley and M. A. E. Dummett, editors, Formal Systems and Recursive Functions, pages 92–130. North-Holland Pub. Co., 1965.
D. Miller. A Logical Analysis of Modules in Logic Programming. Journal of Logic Programming, (6):79–108, 1989.
U. Reddy. Objects as Closures: Abstarct Semantics of Object Oriented Languages. In Proceedings of the ACM Int. Conf. on Lisp and Functional Programming, pages 289–297, 1988.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1994 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Bugliesi, M., Jamil, H.M. (1994). A logic for encapsulation in object oriented languages. In: Hermenegildo, M., Penjam, J. (eds) Programming Language Implementation and Logic Programming. PLILP 1994. Lecture Notes in Computer Science, vol 844. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58402-1_16
Download citation
DOI: https://doi.org/10.1007/3-540-58402-1_16
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-58402-5
Online ISBN: 978-3-540-48695-4
eBook Packages: Springer Book Archive