Evaluating dynamic expressions in a modeling application
First Claim
1. A computer-implemented method for dynamically evaluating expressions in a modeling application in a language for development of a modeling application, said method comprising steps ofrepresenting an expression and definitions of variables associated with said expression in a syntax compatible with a standard language to form a representation of said expression, wherein said step of representing said expression comprises a plurality of statements, wherein one of said statements contains said expression, another of said statements contains a name of a result of said expression, and remaining statements define variables contained in said expression,detecting said representation of said expression and extracting said expression and definition of variables,placing said expression and definitions of variables into a pattern to represent said expression in an intermediate form between said syntax and a query in said standard language, said pattern having a form corresponding to an embedded standard language query for said language for development of a modeling application,placing data into the embedded standard language query including said expression and definitions of variables, andevaluating said expression containing said data.
3 Assignments
0 Petitions
Accused Products
Abstract
Development and use of a computer program in an arbitrary language are facilitated by representing expressions to be dynamically evaluated in a simple syntax compatible with a standard language. The method for evaluating the expressions must provide a pattern or template containing the form and syntax required for an embedded standard language query in the arbitrary language. The representation of the expression in the simple syntax is detected and the expression, variables contained in the expression and the name of the result of an evaluation of the expression are extracted and placed in the template or pattern to derive an intermediate form of the expression. Quantitative data developed by the computer program when it is run is substituted for the variables in the intermediate form of the expression to form a standard language query embedded in the arbitrary language program which is then evaluated by a standard language evaluation engine.
-
Citations
13 Claims
-
1. A computer-implemented method for dynamically evaluating expressions in a modeling application in a language for development of a modeling application, said method comprising steps of
representing an expression and definitions of variables associated with said expression in a syntax compatible with a standard language to form a representation of said expression, wherein said step of representing said expression comprises a plurality of statements, wherein one of said statements contains said expression, another of said statements contains a name of a result of said expression, and remaining statements define variables contained in said expression, detecting said representation of said expression and extracting said expression and definition of variables, placing said expression and definitions of variables into a pattern to represent said expression in an intermediate form between said syntax and a query in said standard language, said pattern having a form corresponding to an embedded standard language query for said language for development of a modeling application, placing data into the embedded standard language query including said expression and definitions of variables, and evaluating said expression containing said data.
-
9. Apparatus for evaluating an expression during modeling of a system or operation including, in combination,
a data processor running a model in a language for development of a modeling application to determine quantitative values of variables included in an expression contained in said model, wherein said expression comprises a plurality of statements, wherein one of said statements contains said expression, another of said statements contains a name of a result of said expression, and remaining statements define variables contained in said expression, means for detecting a representation of a said expression which is in a form compatible with a standard language query, and extracting at least said expression and variables contained in said expression, means for placing said expression and variables contained in said expression into an intermediate form corresponding to an embedded standard language query in said language for development of a modeling application, said embedded standard language query forming a representation of said expression in said intermediate form, means for substituting said quantitative values for variables in said representation of said expression in said intermediate form to develop a standard language query, and a standard language evaluation engine for evaluating said standard language query.
-
13. A computer readable medium having computer readable instructions recorded thereon wherein said instructions recorded thereon include a representation of an expression and definitions of variables associated with said expression in a syntax compatible with a standard language thereon and a modeling application which, when run on a computer, cause the computer to perform steps of
wherein said representation of said expression and definitions of variables comprises a plurality of statements, wherein one of said statements contains said expression, another of said statements contains a name of a result of said expression, and remaining statements define variables contained in said expression, detecting said representation of said expression and extracting said expression and definition of variables, placing said expression and definitions of variables into a pattern to represent said expression in an intermediate form between said syntax and a query in said standard language, said pattern having a form corresponding to an embedded standard language query for said language for development of a modeling application, placing data into the embedded standard language query including said expression and definitions of variables, and evaluating said expression containing said data.
Specification