Documentation of 'org.jquantlib.instruments.PlainVanillaPayoff' Java class
PlainVanillaPayoff
org.jquantlib.instruments

Class PlainVanillaPayoff

  • All Implemented Interfaces:
    PolymorphicVisitable


    public class PlainVanillaPayoff
    extends StrikedTypePayoff
    Plain-vanilla payoff

    Pays off nothing if the underlying asset price finishes below/above the strike price , or pays out a the difference between the asset price and the strike price if the underlying asset finishes above/below the strike price.

    See Also:
    Binary Options
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void accept(PolymorphicVisitor pv)
      This method is intended to extend the semantics of method Visitable.accept(Visitor)
      double get(double price)
      Pays off nothing if the underlying asset price finishes below/above the strike price , or pays out a the difference between the asset price and the strike price if the underlying asset finishes above/below the strike price.
      java.lang.String name() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PlainVanillaPayoff

        public PlainVanillaPayoff(Option.Type type,
                                  double strike)
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in class Payoff
      • get

        public final double get(double price)
        Pays off nothing if the underlying asset price finishes below/above the strike price , or pays out a the difference between the asset price and the strike price if the underlying asset finishes above/below the strike price.
      • CALL Option:
      • PUT Option:
      • where is the asset price at maturity and is the strike price.
Specified by:
get in class Payoff
Skip navigation links

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.