#include <VanillaSwap.h>
Public Member Functions | |
VanillaSwap (CashFlow cashflowReceived1, CashFlow cashflowPaid2, char *name1, char *name2, yieldCurve *curve) | |
Default constructor : create a vanilla swap with two legs. | |
~VanillaSwap (void) | |
Real | getFairValue1 () |
Return fair value of first leg. | |
Real | getFairValue2 () |
Return fair value of second leg. | |
Real | returnPrice () |
Return price of the swap. | |
Real | getRho () |
Return sensitivity to the interest rate. | |
Real | getTheta () |
Return sensitivity to the time. | |
Private Attributes | |
yieldCurve * | _curve |
CashFlow | _leg1 |
CashFlow | _leg2 |
char * | _name1 |
char * | _name2 |
|
Default constructor : create a vanilla swap with two legs.
Definition at line 3 of file VanillaSwap.cpp. References _name1, _name2, and ShortNatural. |
|
Definition at line 16 of file VanillaSwap.cpp. |
|
Return fair value of first leg.
Definition at line 20 of file VanillaSwap.cpp. References _curve, _leg1, CashFlow::getFairValue(), and Real. Referenced by inputVanillaSwap(), and returnPrice(). |
|
Return fair value of second leg.
Definition at line 24 of file VanillaSwap.cpp. References _curve, _leg2, CashFlow::getFairValue(), and Real. Referenced by inputVanillaSwap(), and returnPrice(). |
|
Return sensitivity to the interest rate.
Definition at line 34 of file VanillaSwap.cpp. References _curve, Real, returnPrice(), and yieldCurve::shiftZCBRateCurve(). Referenced by inputVanillaSwap(). |
|
Return sensitivity to the time.
Definition at line 42 of file VanillaSwap.cpp. References _curve, yieldCurve::forwardZCBCurve(), Real, and returnPrice(). Referenced by inputVanillaSwap(). |
|
Return price of the swap.
Definition at line 28 of file VanillaSwap.cpp. References getFairValue1(), getFairValue2(), and Real. Referenced by getRho(), getTheta(), inputVanillaSwap(), and mainIRVanillaSwap(). |
|
Definition at line 31 of file VanillaSwap.h. Referenced by getFairValue1(), getFairValue2(), getRho(), and getTheta(). |
|
Definition at line 32 of file VanillaSwap.h. Referenced by getFairValue1(). |
|
Definition at line 33 of file VanillaSwap.h. Referenced by getFairValue2(). |
|
Definition at line 34 of file VanillaSwap.h. Referenced by VanillaSwap(). |
|
Definition at line 35 of file VanillaSwap.h. Referenced by VanillaSwap(). |