- java.lang.Object
-
- org.quantlib.Observable
-
- org.quantlib.LazyObject
-
- org.quantlib.Instrument
-
- org.quantlib.Swap
-
- org.quantlib.NonstandardSwap
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class NonstandardSwap extends Swap implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNonstandardSwap(long cPtr, boolean cMemoryOwn)NonstandardSwap(Swap.Type type, DoubleVector fixedNominal, DoubleVector floatingNominal, Schedule fixedSchedule, DoubleVector fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, DoubleVector gearing, DoubleVector spread, DayCounter floatDayCount)NonstandardSwap(Swap.Type type, DoubleVector fixedNominal, DoubleVector floatingNominal, Schedule fixedSchedule, DoubleVector fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, DoubleVector gearing, DoubleVector spread, DayCounter floatDayCount, boolean intermediateCapitalExchange)NonstandardSwap(Swap.Type type, DoubleVector fixedNominal, DoubleVector floatingNominal, Schedule fixedSchedule, DoubleVector fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, DoubleVector gearing, DoubleVector spread, DayCounter floatDayCount, boolean intermediateCapitalExchange, boolean finalCapitalExchange)NonstandardSwap(Swap.Type type, DoubleVector fixedNominal, DoubleVector floatingNominal, Schedule fixedSchedule, DoubleVector fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, DoubleVector gearing, DoubleVector spread, DayCounter floatDayCount, boolean intermediateCapitalExchange, boolean finalCapitalExchange, BusinessDayConvention paymentConvention)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()DayCounterfixedDayCount()LegfixedLeg()DoubleVectorfixedNominal()DoubleVectorfixedRate()SchedulefixedSchedule()DayCounterfloatingDayCount()LegfloatingLeg()DoubleVectorfloatingNominal()SchedulefloatingSchedule()doublegearing()DoubleVectorgearings()protected static longgetCPtr(NonstandardSwap obj)IborIndexiborIndex()BusinessDayConventionpaymentConvention()doublespread()DoubleVectorspreads()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
-
NonstandardSwap
protected NonstandardSwap(long cPtr, boolean cMemoryOwn)
-
NonstandardSwap
public NonstandardSwap(Swap.Type type, DoubleVector fixedNominal, DoubleVector floatingNominal, Schedule fixedSchedule, DoubleVector fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, DoubleVector gearing, DoubleVector spread, DayCounter floatDayCount, boolean intermediateCapitalExchange, boolean finalCapitalExchange, BusinessDayConvention paymentConvention)
-
NonstandardSwap
public NonstandardSwap(Swap.Type type, DoubleVector fixedNominal, DoubleVector floatingNominal, Schedule fixedSchedule, DoubleVector fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, DoubleVector gearing, DoubleVector spread, DayCounter floatDayCount, boolean intermediateCapitalExchange, boolean finalCapitalExchange)
-
NonstandardSwap
public NonstandardSwap(Swap.Type type, DoubleVector fixedNominal, DoubleVector floatingNominal, Schedule fixedSchedule, DoubleVector fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, DoubleVector gearing, DoubleVector spread, DayCounter floatDayCount, boolean intermediateCapitalExchange)
-
NonstandardSwap
public NonstandardSwap(Swap.Type type, DoubleVector fixedNominal, DoubleVector floatingNominal, Schedule fixedSchedule, DoubleVector fixedRate, DayCounter fixedDayCount, Schedule floatSchedule, IborIndex index, DoubleVector gearing, DoubleVector spread, DayCounter floatDayCount)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(NonstandardSwap obj)
-
swigSetCMemOwn
protected void swigSetCMemOwn(boolean own)
- Overrides:
swigSetCMemOwnin classSwap
-
delete
public void delete()
-
fixedNominal
public DoubleVector fixedNominal()
-
floatingNominal
public DoubleVector floatingNominal()
-
fixedSchedule
public Schedule fixedSchedule()
-
fixedRate
public DoubleVector fixedRate()
-
fixedDayCount
public DayCounter fixedDayCount()
-
floatingSchedule
public Schedule floatingSchedule()
-
spread
public double spread()
-
gearing
public double gearing()
-
spreads
public DoubleVector spreads()
-
gearings
public DoubleVector gearings()
-
floatingDayCount
public DayCounter floatingDayCount()
-
paymentConvention
public BusinessDayConvention paymentConvention()
-
floatingLeg
public Leg floatingLeg()
-
-