I need some tips about Coercion
Posted by
Piter Dias-4 on
Sep 14, 2009; 10:36pm
URL: http://quantlib.414.s1.nabble.com/I-need-some-tips-about-Coercion-tp12907.html
Eric,
I implemented InterestRate as coupon parameter (in an new qlnew2FixedRateBond class, just for while) and want to make use of Coercion in order to make it backward compatible (so I can use the qlFixedRateBond).
The idea of Coercion is clear but I didn't fully understand the implementation. Must I (let take Quote as example):
Create the proper conversions in QuantLibAddin\qlo\conversions
- Edit QuantLibAddin\gensrc\code\codedict.py to include the conversion rules
- Edit QuantLibAddin\gensrc\metadata\rules\excel.xml (and may be cpp.xml) in order to setup the conversions in the code generation
- Edit QuantLibAddin\gensrc\metadata\types\supertypes.xml (and types.xml as well) including new types for this conversion
- And... I am pretty sure that I am missing something
Do you mind giving some directions so I could do it?
Regards,
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev