|
From: Piter D. <pit...@pi...> - 2009-09-14 22:37:03
|
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 QuantLibAddinqloconversions * Edit QuantLibAddingensrccodecodedict.py to include the conversion rules * Edit QuantLibAddingensrcmetadatarulesexcel.xml (and may be cpp.xml) in order to setup the conversions in the code generation * Edit QuantLibAddingensrcmetadatatypessupertypes.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, -- ------------------------- Piter Dias pit...@pi... |