The article presents a method for constructing a model of an object-oriented program in terms of multilabeled Petri nets. Only encapsulation - one of the three concepts of object-oriented paradigm - is considered. To model a different aspects of encapsulation a Petri net structured object is proposed. It consists of a Petri net defining its behavior and a set of organized access points specifying its structural properties. Formal composition operations to construct a program model from the models of its methods, classes, objects, functions, and modules are introduced and a source code translation algorithm to Petri net representation is proposed. A special section of the article considers in detail a process of model construction of a real object-oriented program (OOP). Source code of the program, figures with Petri net objects modeling different elements of the program and the resulting model of the program are presented.
Publié le : 2017-12-19
Classification:  Theoretical Foundations; Software Engineering,  Place/transition nets, multilabeled Petri nets, program model, object-oriented programming,  68N30
@article{cai2017_5_1063,
     author = {Dmitriy Kharitonov; Institute of Automation and Control Processes, Russian Academy of Sciences, Vladivostok and George Tarasov; Institute of Automation and Control Processes, Russian Academy of Sciences, Vladivostok and Evgeniy Golenkov; Institute of Automation and Control Processes, Russian Academy of Sciences, Vladivostok},
     title = {Modeling of Object-Oriented Programs with Petri Net Structured Objects},
     journal = {Computing and Informatics},
     volume = {35},
     number = {4},
     year = {2017},
     language = {en},
     url = {http://dml.mathdoc.fr/item/cai2017_5_1063}
}
Dmitriy Kharitonov; Institute of Automation and Control Processes, Russian Academy of Sciences, Vladivostok; George Tarasov; Institute of Automation and Control Processes, Russian Academy of Sciences, Vladivostok; Evgeniy Golenkov; Institute of Automation and Control Processes, Russian Academy of Sciences, Vladivostok. Modeling of Object-Oriented Programs with Petri Net Structured Objects. Computing and Informatics, Tome 35 (2017) no. 4, . http://gdmltest.u-ga.fr/item/cai2017_5_1063/