Posted by
Fabio Ramponi on
Apr 23, 2008; 11:16am
URL: http://quantlib.414.s1.nabble.com/use-of-MakeSchedule-class-tp5990.html
Hi all,
I'm trying to use the class MakeSchedule to create a Schedule.
My aim is to create a schedule with MakeSchedule, then use the method
MakeSchedule::withNextToLastDate() to set the private member
nextToLastDate_ and recalculate the Schedule with the
MakeSchedule::Schedule() operator.
Now, the problem is that the operator
Schedule() updates the
nextToLastDate and
firstDate fields in the new Schedule if and only if
stubDate_ != Date()But
stubDate_ is initialized to Date() in the
MakeSchedule constructor and then no other methods allow to change it, so I can call the method
withNextToLastDate(), but the new schedule cannot use the updated field.
My question is: what is
stubDate_ intended for? could it be a bug to be fixed?
Thanks in advance for your answers.
Fabio
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users