CN110209376A - Formula design and analytic method in a kind of application system - Google Patents

Formula design and analytic method in a kind of application system Download PDF

Info

Publication number
CN110209376A
CN110209376A CN201810173536.1A CN201810173536A CN110209376A CN 110209376 A CN110209376 A CN 110209376A CN 201810173536 A CN201810173536 A CN 201810173536A CN 110209376 A CN110209376 A CN 110209376A
Authority
CN
China
Prior art keywords
class
formula
type
application system
analytic method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810173536.1A
Other languages
Chinese (zh)
Inventor
肖志
范少亭
张辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUXI RUITAI ENERGY-SAVING SYSTEM SCIENCE Co Ltd
Original Assignee
WUXI RUITAI ENERGY-SAVING SYSTEM SCIENCE Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUXI RUITAI ENERGY-SAVING SYSTEM SCIENCE Co Ltd filed Critical WUXI RUITAI ENERGY-SAVING SYSTEM SCIENCE Co Ltd
Priority to CN201810173536.1A priority Critical patent/CN110209376A/en
Publication of CN110209376A publication Critical patent/CN110209376A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides the formula designs and analytic method in a kind of application system, it include: the thought with object-oriented, take out an operation base class, define operation void method and parsing entrance, each specific arithmetic type: addition, subtraction, multiplication, division, constant, it is squared, obtain equipment variables value etc., be abstracted into an operation class, operation Similar integral is from operation base class, the characteristics of according to itself operation, realizes concrete operation method;Its recurrence is resolved into single object operation by the operational formula given for one, and the type of each object is operation base class type, and due to polymorphic characteristic, complicated operational formula is converted into the object operation of single type.According to the technical solution of the present invention, it can be very good complicated formula resolving into same type of object operation, for different application scenarios, by object oriented designing, can be very good to extend.

Description

Formula design and analytic method in a kind of application system
Technical field
The present invention relates to software algorithm design fields, and in particular, to formula design and parsing in a kind of application system Method.
Background technique
Have the operation that data are done with operation in many application system now, but in these existing systems for The processing of formula there is no a kind of general processing scheme, can only all solve the problems, such as it is respective, code for recycling journey Spend not high, the formula type of support is relatively simple, and is not easy to extend, operation that cannot well between support target.It is being It unites in the use process in later period, some operations also need interim change, this, which wants the derivation of equation also, needs certain flexibility.
The system of Object-Oriented designs high cohesion, low coupling due to succession, encapsulation, polymorphic characteristic naturally The system structure of conjunction, so that system is more flexible, is easier to extend.
Summary of the invention
The object of the present invention is to provide a kind of design of the operational formula of multiplexing that can be convenient and extension and parsing sides Method.
The technical solution adopted by the present invention is that:
The thought of object-oriented is used in formula design and analytic method in a kind of application system, takes out an operation base Class, define operation void method and parsing entrance, each specific arithmetic type: addition, subtraction, multiplication, division, often Amount, squared, acquisition equipment variables value etc., are abstracted into an operation class, and operation Similar integral is transported from operation base class according to itself The characteristics of calculation, realizes concrete operation method;Its recurrence is resolved into single object operation by the operational formula given for one, The type of each object is operation base class type, and due to polymorphic characteristic, complicated operational formula is converted into unitary class The object operation of type.
The arithmetic type include addition, subtraction, multiplication, division, constant, it is squared, obtain equipment variables value etc., In actual use, different operation classes can be taken out according to application scenarios and is extended.
There are two types of types for the operation class: operation is decomposable and operation is undecomposable.
The operation can decompose class attribute with multiple same types when instantiation, these attributes are exactly after decomposing Single operand.
The parsing entrance is a static method, and concrete function is: according to specified operation distinguished symbol recognition sequence Operational formula is resolved into multiple operations and creates corresponding operation example, keeps two principles: first identifying the low fortune of priority It calculates;When decomposition formula, guarantee that bracket is pairs of appearance or does not occur on the left of the oeprator of identification.
The recurrence decomposes concrete implementation: judge whether the corresponding type of current operation example is decomposable class, it can Decompose class calls parsing entrance function to create new operation example in the constructed fuction of instantiation, and so on, until solution Analyse complete formula.
Technical solution of the present invention have the advantages that complicated formula is resolved into well it is same type of right As operation;Extension can very easily be realized by object oriented designing for different application scenarios.
Detailed description of the invention
Fig. 1 closes for the operation class of formula design and analytic method in a kind of application system described in technical solution of the present invention System's figure;
Fig. 2 designs for the formula in a kind of application system described in technical solution of the present invention and the operational formula of analytic method Process of analysis.

Claims (6)

1. formula design and analytic method in a kind of application system, which is characterized in that with the thought of object-oriented, take out One operation base class defines operation void method and parsing entrance, and each specific arithmetic type: addition, multiplies subtraction Method, division, constant, it is squared, obtain equipment variables value etc., be abstracted into an operation class, operation Similar integral from operation base class, The characteristics of according to itself operation, realizes concrete operation method;The operational formula given for one, its recurrence is resolved into individually Object operation, the type of each object is operation base class type, and due to polymorphic characteristic, complicated operational formula is converted For the object operation of single type.
2. formula design and analytic method in a kind of application system according to claim 1, which is characterized in that operation class Type include addition, subtraction, multiplication, division, constant, it is squared, obtain equipment variables value etc., in actual use, by towards Object designs take out different operation classes and are extended.
3. formula design and analytic method in a kind of application system according to claim 1, which is characterized in that operation class There are two types of: operation can decompose class and operation Indecomposable class.
4. formula design and analytic method in a kind of application system according to claim 1, which is characterized in that the fortune Decomposable class attribute with multiple same types when instantiation is calculated, these attributes are exactly the single operation pair after decomposing As.
5. formula design and analytic method in a kind of application system according to claim 1, which is characterized in that the solution Analysing entrance is a static method, and concrete function is: being decomposed operational formula according to specified operation distinguished symbol recognition sequence At multiple operations and corresponding operation example is created, keeps two principles: first identifying the low operation of priority;When decomposition formula, Guarantee that bracket is pairs of appearance or does not occur on the left of the oeprator of identification.
6. formula design and analytic method in a kind of application system according to claim 1, which is characterized in that described to pass Returning decomposition concrete implementation is: judging whether the corresponding type of current operation example is decomposable class, and decomposable class is instantiating Constructed fuction in call parsing entrance function to create new operation example, and so on, until parsing complete formula.
CN201810173536.1A 2018-02-28 2018-02-28 Formula design and analytic method in a kind of application system Pending CN110209376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810173536.1A CN110209376A (en) 2018-02-28 2018-02-28 Formula design and analytic method in a kind of application system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810173536.1A CN110209376A (en) 2018-02-28 2018-02-28 Formula design and analytic method in a kind of application system

Publications (1)

Publication Number Publication Date
CN110209376A true CN110209376A (en) 2019-09-06

Family

ID=67778812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810173536.1A Pending CN110209376A (en) 2018-02-28 2018-02-28 Formula design and analytic method in a kind of application system

Country Status (1)

Country Link
CN (1) CN110209376A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521411A (en) * 2011-12-28 2012-06-27 畅捷通信息技术股份有限公司 Formula and formula data processing device and formula and formula data processing method
CN106294899A (en) * 2015-05-26 2017-01-04 中国电力科学研究院 The self-defined emulation mode of power system customer based on object-oriented program framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521411A (en) * 2011-12-28 2012-06-27 畅捷通信息技术股份有限公司 Formula and formula data processing device and formula and formula data processing method
CN106294899A (en) * 2015-05-26 2017-01-04 中国电力科学研究院 The self-defined emulation mode of power system customer based on object-oriented program framework

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
怀石工作室等: "XML完全手册", 北京:中国电力出版社 *

Similar Documents

Publication Publication Date Title
CN109766148B (en) Method and apparatus for processing interface method calls
WO2006028869A3 (en) System and mehtod for relating computing systems
US9542461B2 (en) Enhancing performance of extract, transform, and load (ETL) jobs
Chengming et al. Stability analysis of Runge-Kutta methods for non-linear delay differential equations
CN114063997A (en) Method, apparatus and computer program product for generating program code
CN110147397B (en) System docking method, device, management system, terminal equipment and storage medium
CN107729001B (en) Expression processing method and device
MY146702A (en) Information processing system, information processing method, and computer program
CN116431520A (en) Test scene determination method, device, electronic equipment and storage medium
CN109684027A (en) The method and apparatus of dynamically track Java Virtual Machine operation
CN110209376A (en) Formula design and analytic method in a kind of application system
CN106569868B (en) Gradle-based compiling optimization method and device
CN116974947A (en) Component detection method and device, electronic equipment and storage medium
US9489442B1 (en) Prevention of circular event publication in publish/subscribe model using path vector
Liu et al. A remark on a stochastic logistic model with Lévy jumps
CN113569929B (en) Internet service providing method and device based on small sample expansion and electronic equipment
CN116011952A (en) Method for guiding one-transaction situation of government service
CN115292180A (en) Code analysis method, code analysis device, electronic device, and storage medium
EP3832518A1 (en) Graph equation modeling for mathematical equation decomposition and automated code generation
CN104484168A (en) Method and system for comparing Excel differences
CN112015400B (en) Analytic method for converting graphical code block into executable program
CN111078230A (en) Code generation method and device
CN111382021A (en) Processor testing method, related device and equipment
Mizera et al. ASSA-PBN 3.0: Analysing context-sensitive probabilistic Boolean networks
Singh et al. Simultaneous confidence intervals for ordered pairwise differences of exponential location parameters under heteroscedasticity

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190906

RJ01 Rejection of invention patent application after publication