- java.lang.Object
-
- org.quantlib.Observable
-
- org.quantlib.LazyObject
-
- org.quantlib.Instrument
-
- org.quantlib.Swap
-
- org.quantlib.ZeroCouponSwap
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class ZeroCouponSwap extends Swap implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedZeroCouponSwap(long cPtr, boolean cMemoryOwn)ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedRate, DayCounter fixedDayCounter, IborIndex iborIndex, Calendar paymentCalendar)ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedRate, DayCounter fixedDayCounter, IborIndex iborIndex, Calendar paymentCalendar, BusinessDayConvention paymentConvention)ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedRate, DayCounter fixedDayCounter, IborIndex iborIndex, Calendar paymentCalendar, BusinessDayConvention paymentConvention, long paymentDelay)ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedPayment, IborIndex iborIndex, Calendar paymentCalendar)ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedPayment, IborIndex iborIndex, Calendar paymentCalendar, BusinessDayConvention paymentConvention)ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedPayment, IborIndex iborIndex, Calendar paymentCalendar, BusinessDayConvention paymentConvention, long paymentDelay)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublebaseNominal()voiddelete()doublefairFixedPayment()doublefairFixedRate(DayCounter dayCounter)protected voidfinalize()LegfixedLeg()doublefixedLegNPV()doublefixedPayment()LegfloatingLeg()doublefloatingLegNPV()protected static longgetCPtr(ZeroCouponSwap obj)IborIndexiborIndex()protected voidswigSetCMemOwn(boolean own)Swap.Typetype()-
Methods inherited from class org.quantlib.Swap
endDiscounts, getCPtr, leg, legBPS, legNPV, maturityDate, npvDateDiscount, numberOfLegs, payer, startDate, startDiscounts
-
Methods inherited from class org.quantlib.Instrument
errorEstimate, getCPtr, isExpired, NPV, setPricingEngine
-
Methods inherited from class org.quantlib.LazyObject
alwaysForwardNotifications, forwardFirstNotificationOnly, forwardsAllNotifications, freeze, getCPtr, recalculate, unfreeze
-
Methods inherited from class org.quantlib.Observable
getCPtr
-
-
-
-
Constructor Detail
-
ZeroCouponSwap
protected ZeroCouponSwap(long cPtr, boolean cMemoryOwn)
-
ZeroCouponSwap
public ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedPayment, IborIndex iborIndex, Calendar paymentCalendar, BusinessDayConvention paymentConvention, long paymentDelay)
-
ZeroCouponSwap
public ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedPayment, IborIndex iborIndex, Calendar paymentCalendar, BusinessDayConvention paymentConvention)
-
ZeroCouponSwap
public ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedPayment, IborIndex iborIndex, Calendar paymentCalendar)
-
ZeroCouponSwap
public ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedRate, DayCounter fixedDayCounter, IborIndex iborIndex, Calendar paymentCalendar, BusinessDayConvention paymentConvention, long paymentDelay)
-
ZeroCouponSwap
public ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedRate, DayCounter fixedDayCounter, IborIndex iborIndex, Calendar paymentCalendar, BusinessDayConvention paymentConvention)
-
ZeroCouponSwap
public ZeroCouponSwap(Swap.Type type, double baseNominal, Date startDate, Date maturityDate, double fixedRate, DayCounter fixedDayCounter, IborIndex iborIndex, Calendar paymentCalendar)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(ZeroCouponSwap obj)
-
swigSetCMemOwn
protected void swigSetCMemOwn(boolean own)
- Overrides:
swigSetCMemOwnin classSwap
-
delete
public void delete()
-
baseNominal
public double baseNominal()
-
floatingLeg
public Leg floatingLeg()
-
fixedPayment
public double fixedPayment()
-
fixedLegNPV
public double fixedLegNPV()
-
floatingLegNPV
public double floatingLegNPV()
-
fairFixedPayment
public double fairFixedPayment()
-
fairFixedRate
public double fairFixedRate(DayCounter dayCounter)
-
-