org.jquantlib.instruments
Class StrikedTypePayoff
- java.lang.Object
-
- org.jquantlib.instruments.Payoff
-
- org.jquantlib.instruments.TypePayoff
-
- org.jquantlib.instruments.StrikedTypePayoff
-
- All Implemented Interfaces:
- PolymorphicVisitable
- Direct Known Subclasses:
- AssetOrNothingPayoff, CashOrNothingPayoff, GapPayoff, PlainVanillaPayoff
public abstract class StrikedTypePayoff extends TypePayoff
Intermediate class for typed payoffs (CALL/PUT) with a fixed strike price
-
-
Constructor Summary
Constructors Constructor and Description StrikedTypePayoff(Option.Type type, double strike)Constructs a typedPayoffwith a fixed strike price
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Stringdescription()doublestrike()-
Methods inherited from class org.jquantlib.instruments.TypePayoff
optionType
-
-
-
-
Constructor Detail
-
StrikedTypePayoff
public StrikedTypePayoff(Option.Type type, double strike)
Constructs a typedPayoffwith a fixed strike price- Parameters:
type- is anOption.Typestrike- is the strike price
-
-
Method Detail
-
strike
public final double strike()
- Returns:
- the strike value
-
description
public java.lang.String description()
- Overrides:
descriptionin classTypePayoff
-
-
DataMelt 3.0 © DataMelt by jWork.ORG