org.jquantlib.termstructures.volatilities
Class SmileSection
- java.lang.Object
-
- org.jquantlib.termstructures.volatilities.SmileSection
-
- All Implemented Interfaces:
- Observable, Observer
- Direct Known Subclasses:
- FlatSmileSection
public abstract class SmileSection extends java.lang.Object implements Observer, Observable
Smile section base class
-
-
Constructor Summary
Constructors Constructor and Description SmileSection(Date d, DayCounter dc, Date referenceDate)SmileSection(double exerciseTime, DayCounter dc)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidaddObserver(Observer observer)Attaches a observer to the Observable.abstract doubleatmLevel()intcountObservers()Counts how many Observers were attached to this class.DayCounterdayCounter()voiddeleteObserver(Observer observer)Detaches a previously attached observer to the observable.voiddeleteObservers()Detaches all previously attached observer to the observable.DateexerciseDate()doubleexerciseTime()java.util.List<Observer>getObservers()Returns list of observers registered with the Observable.voidinitializeExerciseTime()abstract doublemaxStrike()abstract doubleminStrike()voidnotifyObservers()Notifies all attached observers about changes in the observable.voidnotifyObservers(java.lang.Object arg)Notifies all attached observers about changes in the observable.voidupdate()This method is called whenever the observed object is changed.doublevariance()doublevariance(double strike)doublevolatility()doublevolatility(double strike)
-
-
-
Constructor Detail
-
SmileSection
public SmileSection(Date d, DayCounter dc, Date referenceDate)
-
SmileSection
public SmileSection(double exerciseTime, DayCounter dc)
-
-
Method Detail
-
minStrike
public abstract double minStrike()
-
maxStrike
public abstract double maxStrike()
-
atmLevel
public abstract double atmLevel()
-
variance
public double variance()
-
volatility
public double volatility()
-
initializeExerciseTime
public void initializeExerciseTime()
-
variance
public double variance(double strike)
-
volatility
public double volatility(double strike)
-
exerciseDate
public Date exerciseDate()
-
exerciseTime
public double exerciseTime()
-
dayCounter
public DayCounter dayCounter()
-
update
public void update()
Description copied from interface:ObserverThis method is called whenever the observed object is changed.
-
addObserver
public void addObserver(Observer observer)
Description copied from interface:ObservableAttaches a observer to the Observable. After attachment the observer gets informed about changes in the Observable.- Specified by:
addObserverin interfaceObservable- Parameters:
observer- The observer to attach to the observable
-
countObservers
public int countObservers()
Description copied from interface:ObservableCounts how many Observers were attached to this class.- Specified by:
countObserversin interfaceObservable- Returns:
- the number of Observers
- See Also:
Observer
-
deleteObserver
public void deleteObserver(Observer observer)
Description copied from interface:ObservableDetaches a previously attached observer to the observable. After detachment the observer does no longer receive change notifications from the observable.- Specified by:
deleteObserverin interfaceObservable- Parameters:
observer- The observer to detach from the observable
-
notifyObservers
public void notifyObservers()
Description copied from interface:ObservableNotifies all attached observers about changes in the observable.- Specified by:
notifyObserversin interfaceObservable
-
notifyObservers
public void notifyObservers(java.lang.Object arg)
Description copied from interface:ObservableNotifies all attached observers about changes in the observable.- Specified by:
notifyObserversin interfaceObservable- Parameters:
arg- an arbitrary Object to be passed to the Observer
-
deleteObservers
public void deleteObservers()
Description copied from interface:ObservableDetaches all previously attached observer to the observable. After detachment observers do not longer receive change notifications from the observable.- Specified by:
deleteObserversin interfaceObservable
-
getObservers
public java.util.List<Observer> getObservers()
Description copied from interface:ObservableReturns list of observers registered with the Observable. List returned is unmodifiable list.- Specified by:
getObserversin interfaceObservable- Returns:
- list of observers
-
-
DataMelt 3.0 © DataMelt by jWork.ORG