Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/More-SWIG-Interface-Files-tp1016p1020.html
On Fri, 2007-06-15 at 11:40 +0200, Metzner Robert wrote:
> i am a little under pressure with the projects i have to
> process and under this aspect i have to talk with my
> purchasers.
> If they accept i will try to create the missing interfaces.
> Unfortunately i am a newbie in swig, so it will become
> hard for me and i would be glad if i could get some help.
You're welcome to ask for directions on this list.
> Another open Question in this context is if the interfaces
> are complete per C++ Object.
> i could instanciate a BlackScholesProcess Object, but could
> not call a method in it, because there are no methods in the
> object, but in the superobject.
> Can You or anyone give me some information about this ?
Strange. I haven't used the Java bindings myself, but it should work as
usuals---given an object, you should be able to call methods defined in
either its class or its superclasses. Let me look at the bindings...
Oh, I see. No methods were exported for the StochasticProcess class.
Probably, the one who wrote the binding (maybe me?) just needed to
instantiate processes and pass them to other objects, so he didn't
bother defining the methods. If you want, you can try adding them by
editing stochasticprocess.i and adding the relevant methods to the
class. While doing that, you might want to remove the "virtual" keywords
and the accompanying "= 0". Also, replace Disposable<Array> with Array
as the former is not currently supported in the bindings---same for
Matrix. When you're done, regenerate the bindings by running SWIG (the
command line you need is in the Makefile in the Java directory.)
As I said, you're welcome to post questions here if anything goes wrong.
Later,
Luigi
----------------------------------------
fix, n.,v.
What one does when a problem has been reported too many times
to be ignored.
-- the Jargon file
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users