Class SwapRateHelper
- java.lang.Object
-
- org.jquantlib.termstructures.BootstrapHelper<YieldTermStructure>
-
- org.jquantlib.termstructures.RateHelper
-
- org.jquantlib.termstructures.yieldcurves.RelativeDateRateHelper
-
- org.jquantlib.termstructures.yieldcurves.SwapRateHelper
-
- All Implemented Interfaces:
- Observable, Observer, PolymorphicVisitable
public class SwapRateHelper extends RelativeDateRateHelper
Rate helper for bootstrapping over swap rates
-
-
Constructor Summary
Constructors Constructor and Description SwapRateHelper(double rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex)SwapRateHelper(double rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex, Handle<Quote> spread)SwapRateHelper(double rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex, Handle<Quote> spread, Period fwdStart)SwapRateHelper(double rate, SwapIndex swapIndex)SwapRateHelper(double rate, SwapIndex swapIndex, Handle<Quote> spread)SwapRateHelper(double rate, SwapIndex swapIndex, Handle<Quote> spread, Period fwdStart)SwapRateHelper(Handle<Quote> rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex)SwapRateHelper(Handle<Quote> rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex, Handle<Quote> spread)SwapRateHelper(Handle<Quote> rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex, Handle<Quote> spread, Period fwdStart)SwapRateHelper(Handle<Quote> rate, SwapIndex swapIndex)SwapRateHelper(Handle<Quote> rate, SwapIndex swapIndex, Handle<Quote> spread)SwapRateHelper(Handle<Quote> rate, SwapIndex swapIndex, Handle<Quote> spread, Period fwdStart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaccept(PolymorphicVisitor pv)This method is intended to extend the semantics of methodVisitable.accept(Visitor)PeriodforwardStart()doubleimpliedQuote()voidsetTermStructure(YieldTermStructure t)Do not set the relinkable handle as an observer.doublespread()VanillaSwapswap()-
Methods inherited from class org.jquantlib.termstructures.yieldcurves.RelativeDateRateHelper
update
-
Methods inherited from class org.jquantlib.termstructures.BootstrapHelper
addObserver, countObservers, deleteObserver, deleteObservers, earliestDate, getObservers, latestDate, notifyObservers, notifyObservers, quoteError, quoteIsValid
-
-
-
-
Constructor Detail
-
SwapRateHelper
public SwapRateHelper(Handle<Quote> rate, SwapIndex swapIndex, Handle<Quote> spread, Period fwdStart)
-
SwapRateHelper
public SwapRateHelper(Handle<Quote> rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex)
-
SwapRateHelper
public SwapRateHelper(Handle<Quote> rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex, Handle<Quote> spread)
-
SwapRateHelper
public SwapRateHelper(Handle<Quote> rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex, Handle<Quote> spread, Period fwdStart)
-
SwapRateHelper
public SwapRateHelper(double rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex)
-
SwapRateHelper
public SwapRateHelper(double rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex, Handle<Quote> spread)
-
SwapRateHelper
public SwapRateHelper(double rate, Period tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, IborIndex iborIndex, Handle<Quote> spread, Period fwdStart)
-
SwapRateHelper
public SwapRateHelper(double rate, SwapIndex swapIndex)
-
-
Method Detail
-
setTermStructure
public void setTermStructure(YieldTermStructure t)
Do not set the relinkable handle as an observer. Force recalculation when needed- Overrides:
setTermStructurein classBootstrapHelper<YieldTermStructure>- Parameters:
t-- See Also:
BootstrapHelper.setTermStructure(TS)
-
impliedQuote
public double impliedQuote()
- Specified by:
impliedQuotein classBootstrapHelper<YieldTermStructure>- See Also:
org.jquantlib.termstructures.BootstrapHelper#getImpliedQuote()
-
spread
public double spread()
-
swap
public VanillaSwap swap()
-
forwardStart
public final Period forwardStart()
-
accept
public void accept(PolymorphicVisitor pv)
Description copied from interface:PolymorphicVisitableThis method is intended to extend the semantics of methodVisitable.accept(Visitor)In a conventional Visitor design pattern, the
acceptmethod is called when access to visit a data structure is requested. AVisitorobject is passed as argument in case permission is granted to thatVisitorto access the data structure. Obviously,Visitors andVisitables work in pairs and the class which provides the data structure to be visited also implementsVisitablein order to properly grant access when the expectedVisitoris received.In the case of a
PolymorphicVisitable, aPolymorphicVisitoris passed instead of aVisitor. APolymorphicVisitoris in fact, a composition ofVisitors and not only a singleVisitor. APolymorphicVisitoris responsible for returning the correctVisitorresponsible for processing a certain data structure.The initial design of pairs made of <
Visitor,Visitable> is extended to a concept of a matrix made of multipleVisitors against multipleVisitables. Every class which implementsPolymorphicVisitablepasses different data structures when queryingPolymorphicVisitors.- Specified by:
acceptin interfacePolymorphicVisitable- Overrides:
acceptin classBootstrapHelper<YieldTermStructure>- See Also:
PolymorphicVisitor#getVisitor(Class)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG