Login  Register

Re: Fixed periods in a swap

Posted by Luigi Ballabio on Feb 01, 2011; 2:41pm
URL: http://quantlib.414.s1.nabble.com/Fixed-periods-in-a-swap-tp8845p8849.html

On Tue, 2011-02-01 at 15:35 +0100, Henner Heck wrote:
> Still, any idea on adding the parameter in SWIG?
> >> In the Java classes i get from the SWIG interface files, the optional  
> >> parameter "paymentConvention"
> >> is not available for QuantLib::VanillaSwap. Any chance of making it  
> >> available?

I still have to figure out how to export boost::optional.
In the meantime, you can add an overloaded constructor that takes all
parameters including the paymentConvention (just duplicate the existing
one in the %extend section, add the parameter, and use it to create the
VanillaSwap being allocated.)

Luigi


--

All generalizations are dangerous, even this one.
-- Alexandre Dumas



------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev