org.jquantlib.pricingengines.vanilla.finitedifferences
Class FDDividendAmericanEngine
- java.lang.Object
-
- org.jquantlib.pricingengines.vanilla.finitedifferences.FDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>
-
- org.jquantlib.pricingengines.vanilla.finitedifferences.FDDividendAmericanEngine
-
- All Implemented Interfaces:
- OneAssetOption.Engine, VanillaOption.Engine, PricingEngine, Observable, Observer
public class FDDividendAmericanEngine extends FDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine> implements VanillaOption.Engine
Finite-differences pricing engine for dividend American options
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jquantlib.pricingengines.PricingEngine
PricingEngine.Arguments, PricingEngine.Results
-
-
Field Summary
-
Fields inherited from interface org.jquantlib.pricingengines.PricingEngine
PRICING_ENGINE_NOT_SET
-
-
Constructor Summary
Constructors Constructor and Description FDDividendAmericanEngine(GeneralizedBlackScholesProcess process)FDDividendAmericanEngine(GeneralizedBlackScholesProcess process, int timeSteps)FDDividendAmericanEngine(GeneralizedBlackScholesProcess process, int timeSteps, int gridPoints)FDDividendAmericanEngine(GeneralizedBlackScholesProcess process, int timeSteps, int gridPoints, boolean timeDependent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddObserver(Observer observer)Attaches a observer to the Observable.intcountObservers()Counts how many Observers were attached to this class.voiddeleteObserver(Observer observer)Detaches a previously attached observer to the observable.voiddeleteObservers()Detaches all previously attached observer to the observable.PricingEngine.ArgumentsgetArguments()java.util.List<Observer>getObservers()Returns list of observers registered with the Observable.PricingEngine.ResultsgetResults()voidnotifyObservers()Notifies all attached observers about changes in the observable.voidnotifyObservers(java.lang.Object arg)Notifies all attached observers about changes in the observable.voidreset()voidupdate()This method is called whenever the observed object is changed.-
Methods inherited from class org.jquantlib.pricingengines.vanilla.finitedifferences.FDEngineAdapter
calculate
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jquantlib.pricingengines.PricingEngine
calculate
-
-
-
-
Constructor Detail
-
FDDividendAmericanEngine
public FDDividendAmericanEngine(GeneralizedBlackScholesProcess process)
-
FDDividendAmericanEngine
public FDDividendAmericanEngine(GeneralizedBlackScholesProcess process, int timeSteps)
-
FDDividendAmericanEngine
public FDDividendAmericanEngine(GeneralizedBlackScholesProcess process, int timeSteps, int gridPoints)
-
FDDividendAmericanEngine
public FDDividendAmericanEngine(GeneralizedBlackScholesProcess process, int timeSteps, int gridPoints, boolean timeDependent)
-
-
Method Detail
-
getArguments
public PricingEngine.Arguments getArguments()
- Specified by:
getArgumentsin interfacePricingEngine
-
getResults
public PricingEngine.Results getResults()
- Specified by:
getResultsin interfacePricingEngine
-
reset
public void reset()
- Specified by:
resetin interfacePricingEngine
-
update
public void update()
Description copied from interface:ObserverThis method is called whenever the observed object is changed.- Specified by:
updatein interfacePricingEngine- Specified by:
updatein interfaceObserver- Overrides:
updatein classFDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>
-
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- Overrides:
addObserverin classFDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>- 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- Overrides:
countObserversin classFDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>- 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- Overrides:
deleteObserverin classFDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>- Parameters:
observer- The observer to detach from the observable
-
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- Overrides:
deleteObserversin classFDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>
-
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- Overrides:
getObserversin classFDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>- Returns:
- list of observers
-
notifyObservers
public void notifyObservers()
Description copied from interface:ObservableNotifies all attached observers about changes in the observable.- Specified by:
notifyObserversin interfaceObservable- Overrides:
notifyObserversin classFDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>
-
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- Overrides:
notifyObserversin classFDEngineAdapter<FDAmericanCondition<FDDividendEngine>,VanillaOption.Engine>- Parameters:
arg- an arbitrary Object to be passed to the Observer
-
-
DataMelt 3.0 © DataMelt by jWork.ORG