00001 #pragma once 00002 00003 #ifndef SWAPLEG_H 00004 #define SWAPLEG_H 00005 00006 #include "./../Common/Date.h" 00007 #include "./../Common/types.h" 00008 #include <valarray> 00009 using namespace std; 00010 00011 class SwapLeg 00012 { 00013 public: 00014 00018 SwapLeg(Date startDate, Real Frequency, Date endDate, Real Notional, Real AmortizingConstant, BusinessDayConvention convention); 00019 00022 SwapLeg(valarray<Date> dates, valarray<Real> Notionals); 00023 00025 LongInteger returnSize(); 00026 00028 valarray<Date> returnDates(); 00029 00031 valarray<Real> returnAmounts(); 00032 00033 ~SwapLeg(void); 00034 00035 private: 00036 valarray<Date> _dateSchedule; 00037 valarray<Real> _flowSchedule; 00038 }; 00039 00040 #endif; 00041