Vanilla option refactoring
Posted by
Joseph Wang-2 on
URL: http://quantlib.414.s1.nabble.com/Vanilla-option-refactoring-tp9216.html
Just wanted to bounce this idea off people.
Right now we have
QuantoVanillaOption
QuantoForwardVanillaOption
ForwardVanillaOption
If you add in options on divdend paying stocks that's another level of
complication.
I was wondering if it would be a good idea to create the classes
QuantoInstrument
ForwardInstrument
And then use multiple inheritance to compose the option classes.
Alternatively we can use decorator templates in the same way that the engines
work.
Quanto<VanillaOption>
Thoughts?
--
-------------------------------------------------------------------------------
Joseph Wang Ph.D. -
[hidden email]
China Derivatives Researcher and Software Developer - QuantLib
http://en.wikiversity.org/wiki/User:Roadrunner-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev