Объектная модель подсистемы математического моделирования

Лезарев Александр Викторович, Шкуркин Алексей Сергеевич · Вестник Томского государственного университета. Управление, вычислительная техника и информатика · 2010

The paper presents mathematical calculations subsystem design for object-oriented distributed system of queuing modeling. This subsystem is proposed to split into three main components. Parser component is a link between the Models Base, the Solver and client subsystems. It is designed to receive commands to carry out calculations and return results. A special representation of mathematical formulas need to be created to perform the calculations. Mathematical formulas are invited to be written in object form. Object representation allows you to create user-friendly formula designers and also to solve storage problems effectively. Solver component directly is intended to carry out mathematical calculations directly. In this paper we proposed to develop our own mechanisms for computing, as well as the possibility of connecting external components. The Solver was designed in order to an architectural pattern «Gateway». Models Base component is oriented to store model descriptions and their characteristics together with the expressions which calculate them. It is proposed to create in XML file form. One of the main parts of the Parser component is the module that performs creation processes of object-represented formulas. Object oriented design pattern «Composite» is used to design this subsystem. Main objects of the subsystem was presented in the paper: a special data type DataType that offers common interface for scalar and matrix values, Expression and Variable classes that are descendants of the FormulaAtom class and are designed for presentation of mathematical expressions (subexpressions) and variables respectively. Expression class descendants are designed for computing of specific functions or operations. They defines necessary parameters and specifies the method Calculate(). The actions sequence of formula calculation process was described. A sequence diagram for logarithm sample is presented in the article for the better understanding of performing calculations.

Cited by 0 works.

Authors

References