Object model of mathematical modeling subsystem
The paper presents mathematical calculations subsystem design for object-oriented distributedsystem of queuing modeling.This subsystem is proposed to split into three main components. Parser component is a linkbetween the Models Base, the Solver and client subsystems. It is designed to receive commands tocarry out calculations and return results. A special representation of mathematical formulas needto be created to perform the calculations. Mathematical formulas are invited to be written in objectform. Object representation allows you to create user-friendly formula designers and also tosolve storage problems effectively.Solver component directly is intended to carry out mathematical calculations directly. In thispaper we proposed to develop our own mechanisms for computing, as well as the possibility ofconnecting 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 togetherwith 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 processesof object-represented formulas. Object oriented design pattern «Composite» is used to design thissubsystem. Main objects of the subsystem was presented in the paper: a special data typeDataType that offers common interface for scalar and matrix values, Expression and Variableclasses that are descendants of the FormulaAtom class and are designed for presentation ofmathematical 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 forlogarithm sample is presented in the article for the better understanding of performing calculations.
Keywords
Object oriented programming, mathematical modeling, математическое моделирование, объектно-ориентированное проектированиеAuthors
Name | Organization | |
Lezarev Alexander V. | Anjero-Sudjensk branch of the Kemerovo State University | lezarev@asf.ru |
Shkurkin Alexey S. | Anjero-Sudjensk branch of the Kemerovo State University | shkurkin@asf.ru |
References
