|
For something like that I would consider
creating a CFC (or Java class, if you prefer) that contains all of the
functions and use them via that. CFCs make great function library
containers. You might create, for example, a “InvestmentCalc”
object then call it as “InvestmentCalc.IRR()” and so forth.
You could cache a single instance of the component in the application scope (or
server scope if you own the machine) to make accessing it simpler. Although not done in CF we have something similar
at the office: the insurance industry has several common calcs and in our case
we’ve defined 13 as being “standard”. However they were
being use all over the company with slight variations. Thus began the “13
Calcs Standardization Project” – it’s still not done…
and probably never will be. ;^) Jim Davis From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Angus Johnson I am building a CF / Mach II application for
investment modelling. Many of the investment calculations are repetitive such
as net present value, IRR etc so I want to abstract them out of some of my
managers. Rather than having them in CF script or the like I was wondering if
there was a common set of java classes available? What I am really after is a library of functions
similar to that in Excel that I can instantiate then call from my CF apps. Can
anyone recommend anything? Thanks in advance. Angus |
- Re: [CFCDev] java library for common calculations Jim Davis
- Re: [CFCDev] java library for common calculations Qasim Rasheed
