QuantLib Java

Posted by John Nichol-2 on
URL: http://quantlib.414.s1.nabble.com/QuantLib-Java-tp4013.html

Hi,

QuantLib looks very interesting, great work! I am new to QuantLib and
SWIG so apologies if I am asking stupid or inappropriate questions, have
spent many hours searching and building and googling to get to where I
am now!

I have followed Jonah Witters thread "Quantlib available from Java +
using Eclipse as IDE for building quantlib" and followed though his
tutorial as best I can with the 0.3.10 version of QuantLib + some
downloads from CVS.

I have a few questions that I would appreciate some input on
1) When is 0.3.11 likely to be released? I understand this is the first
release expected to have the undated Swig interfaces.
2) Is there is a CVS tag or version of the Swig files for Java that work
with the 0.3.10 release, basically  a bundle of the changes Jonah made?
3) Looking at the latest files in CVS it seems there is still a
functionality missing from the Swig files. E.g. bond.i does not expose
several important methods like

        const std::vector<boost::shared_ptr<CashFlow> >& cashflows() const;
        const boost::shared_ptr<CashFlow>& redemption() const;
        const Calendar& calendar() const;
        BusinessDayConvention businessDayConvention() const;
        const DayCounter& dayCounter() const;
        Frequency frequency() const;

Is this because SWIG does not support exposing this functionality (I
will ask this on the SWIG list), or simply because no one has needed to
expose this functionality yet?

I had a go at making redemption() available in the bond.i file but
wasn't able to get access to the CashFlow object in a useful way. I
could get a SWIGTYPE_p_CashFlow java object, but I can't see how one
uses that. My C++ is very very rusty so I am probably just being a muppet!

Thanks,

John