Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

void QuantLib::Bond::setSingleRedemption ( Real  notional,
Real  redemption,
const Date date 
) [protected, inherited]

This method can be called by derived classes in order to build a bond with a single redemption payment. It will fill the notionalSchedule_, notionals_, and redemptions_ data members.

Definition at line 323 of file bond.cpp.

                                                     {

        boost::shared_ptr<CashFlow> redemptionCashflow(
                         new Redemption(notional*redemption/100.0, date));
        setSingleRedemption(notional, redemptionCashflow);
    }

Generated by  Doxygen 1.6.0   Back to index