Sample code - calculator
Posted: Fri Aug 07, 2009 2:30 pm
by Robert Barr >> Fri, 19 Jan 2001 0:49:09 GMT
The attached zip file contains some sample code for JADE 5.1.08 that may be of interest to those new to JADE. In fact I wrote this in response to a recent question from a client, who wished to allow users (I believe they were accounting clerks) to enter ad-hoc mathematical formulae, and pass these to the JADE compiler and interpreter for execution. The
sample calculator demonstrates this, and allows the user to select numerical property values of database instances (e.g. employee age, company asset value) and use these in the calculations.
Robert Barr
JADE Application Consultants
And the disclaimers ...
The intent of this code is to demonstrate a technique. I am aware of the potential for improvement to this code. However to encourage others to post code samples without apprehension, I request no critique on the newsgroup.
Aoraki Corporation Limited (Aoraki) believes that this software is accurate and reliable and has been prepared with care but can give no guarantee that the software will be free of defects or errors. No responsibility or liability, financial or otherwise, can be accepted for any consequences arising out of the use of this software including loss of profits, indirect, special or consequential losses or damages.
The attached zip file contains some sample code for JADE 5.1.08 that may be of interest to those new to JADE. In fact I wrote this in response to a recent question from a client, who wished to allow users (I believe they were accounting clerks) to enter ad-hoc mathematical formulae, and pass these to the JADE compiler and interpreter for execution. The
sample calculator demonstrates this, and allows the user to select numerical property values of database instances (e.g. employee age, company asset value) and use these in the calculations.
Robert Barr
JADE Application Consultants
And the disclaimers ...
The intent of this code is to demonstrate a technique. I am aware of the potential for improvement to this code. However to encourage others to post code samples without apprehension, I request no critique on the newsgroup.
Aoraki Corporation Limited (Aoraki) believes that this software is accurate and reliable and has been prepared with care but can give no guarantee that the software will be free of defects or errors. No responsibility or liability, financial or otherwise, can be accepted for any consequences arising out of the use of this software including loss of profits, indirect, special or consequential losses or damages.