- java.lang.Object
-
- org.quantlib.Observable
-
- org.quantlib.LazyObject
-
- org.quantlib.Instrument
-
- org.quantlib.Swap
-
- org.quantlib.VanillaSwap
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class VanillaSwap extends Swap implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVanillaSwap(long cPtr, boolean cMemoryOwn)VanillaSwap(Swap.Type type, double nominal, Schedule fixedSchedule, double fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, double spread, DayCounter floatingDayCount)VanillaSwap(Swap.Type type, double nominal, Schedule fixedSchedule, double fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, double spread, DayCounter floatingDayCount, OptionalBool withIndexedCoupons)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()doublefairRate()doublefairSpread()protected voidfinalize()DayCounterfixedDayCount()LegfixedLeg()doublefixedLegBPS()doublefixedLegNPV()doublefixedRate()SchedulefixedSchedule()DayCounterfloatingDayCount()LegfloatingLeg()doublefloatingLegBPS()doublefloatingLegNPV()SchedulefloatingSchedule()protected static longgetCPtr(VanillaSwap obj)doublenominal()doublespread()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
-
VanillaSwap
protected VanillaSwap(long cPtr, boolean cMemoryOwn)
-
VanillaSwap
public VanillaSwap(Swap.Type type, double nominal, Schedule fixedSchedule, double fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, double spread, DayCounter floatingDayCount, OptionalBool withIndexedCoupons)
-
VanillaSwap
public VanillaSwap(Swap.Type type, double nominal, Schedule fixedSchedule, double fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, double spread, DayCounter floatingDayCount)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(VanillaSwap obj)
-
swigSetCMemOwn
protected void swigSetCMemOwn(boolean own)
- Overrides:
swigSetCMemOwnin classSwap
-
delete
public void delete()
-
fairRate
public double fairRate()
-
fairSpread
public double fairSpread()
-
fixedLegBPS
public double fixedLegBPS()
-
floatingLegBPS
public double floatingLegBPS()
-
fixedLegNPV
public double fixedLegNPV()
-
floatingLegNPV
public double floatingLegNPV()
-
floatingLeg
public Leg floatingLeg()
-
nominal
public double nominal()
-
fixedSchedule
public Schedule fixedSchedule()
-
floatingSchedule
public Schedule floatingSchedule()
-
fixedRate
public double fixedRate()
-
spread
public double spread()
-
floatingDayCount
public DayCounter floatingDayCount()
-
fixedDayCount
public DayCounter fixedDayCount()
-
-