Class BlackVolatilityTermStructure
- java.lang.Object
-
- org.jquantlib.termstructures.AbstractTermStructure
-
- org.jquantlib.termstructures.volatilities.VolatilityTermStructure
-
- org.jquantlib.termstructures.BlackVolTermStructure
-
- org.jquantlib.termstructures.BlackVolatilityTermStructure
-
- All Implemented Interfaces:
- Extrapolator, TermStructure, Observable, Observer, PolymorphicVisitable
- Direct Known Subclasses:
- BlackConstantVol
public abstract class BlackVolatilityTermStructure extends BlackVolTermStructure
This abstract class acts as an adapter to BlackVolTermStructure allowing the programmer to implement only the methodBlackVolTermStructure.blackVolImpl(double, double)in derived classes.Volatility is assumed to be expressed on an annual basis.
-
-
Constructor Summary
Constructors Constructor and Description BlackVolatilityTermStructure()'default constructor'BlackVolatilityTermStructure(Calendar cal)'default constructor'BlackVolatilityTermStructure(Calendar cal, BusinessDayConvention bdc)'default constructor'BlackVolatilityTermStructure(Calendar cal, BusinessDayConvention bdc, DayCounter dc)'default constructor'BlackVolatilityTermStructure(Date referenceDate)Initialize with a fixed reference dateBlackVolatilityTermStructure(Date referenceDate, Calendar cal)Initialize with a fixed reference dateBlackVolatilityTermStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc)Initialize with a fixed reference dateBlackVolatilityTermStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc, DayCounter dc)Initialize with a fixed reference dateBlackVolatilityTermStructure(int settlementDays, Calendar cal)Calculate the reference date based on the global evaluation dateBlackVolatilityTermStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc)Calculate the reference date based on the global evaluation dateBlackVolatilityTermStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc, DayCounter dc)Calculate the reference date based on the global evaluation date
-
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)-
Methods inherited from class org.jquantlib.termstructures.BlackVolTermStructure
blackForwardVariance, blackForwardVariance, blackForwardVol, blackForwardVol, blackVariance, blackVariance, blackVariance, blackVariance, blackVol, blackVol, blackVol, blackVol, maxStrike, minStrike
-
Methods inherited from class org.jquantlib.termstructures.volatilities.VolatilityTermStructure
businessDayConvention, optionDateFromTenor
-
Methods inherited from class org.jquantlib.termstructures.AbstractTermStructure
addObserver, allowsExtrapolation, calendar, countObservers, dayCounter, deleteObserver, deleteObservers, disableExtrapolation, enableExtrapolation, getObservers, maxTime, notifyObservers, notifyObservers, referenceDate, settlementDays, timeFromReference, update
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jquantlib.termstructures.TermStructure
maxDate
-
-
-
-
Constructor Detail
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure()
'default constructor'
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(Calendar cal)
'default constructor'
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(Calendar cal, BusinessDayConvention bdc)
'default constructor'
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(Calendar cal, BusinessDayConvention bdc, DayCounter dc)
'default constructor'
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(Date referenceDate)
Initialize with a fixed reference date
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(Date referenceDate, Calendar cal)
Initialize with a fixed reference date
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc)
Initialize with a fixed reference date
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc, DayCounter dc)
Initialize with a fixed reference date
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(int settlementDays, Calendar cal)Calculate the reference date based on the global evaluation date
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc)Calculate the reference date based on the global evaluation date
-
BlackVolatilityTermStructure
public BlackVolatilityTermStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc, DayCounter dc)Calculate the reference date based on the global evaluation date
-
-
Method Detail
-
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 classBlackVolTermStructure- See Also:
PolymorphicVisitor#getVisitor(Class)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG