RUS  ENG
Full version
JOURNALS // Proceedings of the Institute for System Programming of the RAS // Archive

Proceedings of ISP RAS, 2023 Volume 35, Issue 2, Pages 169–180 (Mi tisp777)

An object-oriented approach to scenario support in optics CAD systems

M. S. Kopylov, N. B. Deryabin, E. Yu. Denisov

Keldysh Institute of Applied Mathematics of Russian Academy of Sciences

Abstract: This article discusses the problems of supporting Python scripts in an actively developing interactive graphics system. Such support is a time-consuming task, which is difficult to automate in the general case. As a solution to this problem, we propose an approach that allows developers to combine the creation of new system components with the simultaneous embedding of scripting support without writing redundant additional code. The result is a user-friendly object-oriented API that describes all aspects of interaction between the system and scripts. Scripts using this API can be used to modeling automation as well as to extend the system with custom extension classes. The latter is especially important as it leaves the ability for ordinary users to extend closed-source systems on their own.

Keywords: modeling automation, extensibility, script language, graphical interface

DOI: 10.15514/ISPRAS-2023-35(2)-12



© Steklov Math. Inst. of RAS, 2024