org.jquantlib.instruments
Class OneAssetOption
- java.lang.Object
-
- org.jquantlib.util.LazyObject
-
- org.jquantlib.instruments.Instrument
-
- org.jquantlib.instruments.Option
-
- org.jquantlib.instruments.OneAssetOption
-
- All Implemented Interfaces:
- Observable, Observer
- Direct Known Subclasses:
- BarrierOption, ContinuousAveragingAsianOption, ConvertibleBondOption, DiscreteAveragingAsianOption, VanillaOption
public class OneAssetOption extends Option
Base class for options on a single asset
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interfaceOneAssetOption.Argumentsbasic option argumentsstatic classOneAssetOption.ArgumentsImplstatic interfaceOneAssetOption.Enginestatic classOneAssetOption.EngineImplThe pricing engine for one-asset optionsstatic interfaceOneAssetOption.ResultsResults from single-asset option calculationstatic classOneAssetOption.ResultsImplResults from single-asset option calculation-
Nested classes/interfaces inherited from class org.jquantlib.instruments.Option
Option.Greeks, Option.GreeksImpl, Option.MoreGreeks, Option.MoreGreeksImpl, Option.Type
-
-
Constructor Summary
Constructors Constructor and Description OneAssetOption(Payoff payoff, Exercise exercise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubledelta()doubledeltaForward()doubledividendRho()doubleelasticity()voidfetchResults(PricingEngine.Results r)Obtains theInstrument.Resultspopulated by aPricingEngine.doublegamma()booleanisExpired()doubleitmCashProbability()doublerho()voidsetupExpired()This method must leave the instrument in a consistent state when the expiration condition is met.doublestrikeSensitivity()doubletheta()doublethetaPerDay()doublevega()-
Methods inherited from class org.jquantlib.instruments.Instrument
errorEstimate, NPV, setPricingEngine
-
Methods inherited from class org.jquantlib.util.LazyObject
addObserver, countObservers, deleteObserver, deleteObservers, freeze, getObservers, notifyObservers, notifyObservers, recalculate, unfreeze, update
-
-
-
-
Method Detail
-
isExpired
public boolean isExpired()
- Specified by:
isExpiredin classInstrument- Returns:
trueif the instrument is still tradeable.
-
delta
public double delta()
-
deltaForward
public double deltaForward()
-
elasticity
public double elasticity()
-
gamma
public double gamma()
-
theta
public double theta()
-
thetaPerDay
public double thetaPerDay()
-
vega
public double vega()
-
rho
public double rho()
-
dividendRho
public double dividendRho()
-
strikeSensitivity
public double strikeSensitivity()
-
itmCashProbability
public double itmCashProbability()
-
setupExpired
public void setupExpired()
Description copied from class:InstrumentThis method must leave the instrument in a consistent state when the expiration condition is met.
-
fetchResults
public void fetchResults(PricingEngine.Results r)
Description copied from class:InstrumentObtains theInstrument.Resultspopulated by aPricingEngine. When a derived result structure is defined for an instrument, this method should be overridden to read from it.- See Also:
Instrument.Results,PricingEngine
-
-
DataMelt 3.0 © DataMelt by jWork.ORG