All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.finmath.modelling.descriptor.SingleAssetDigitalOptionProductDescriptor Maven / Gradle / Ivy

Go to download

finmath lib is a Mathematical Finance Library in Java. It provides algorithms and methodologies related to mathematical finance.

The newest version!
package net.finmath.modelling.descriptor;

import java.time.LocalDate;

import net.finmath.modelling.SingleAssetProductDescriptor;

/**
 * Describes a European digital option.
 *
 * @author Christian Fries
 * @author Roland Bachl
 * @version 1.0
 */
public class SingleAssetDigitalOptionProductDescriptor implements SingleAssetProductDescriptor {

	private static final String productName = "Single asset Digital option";

	private final LocalDate maturity;
	private final double strike;
	private final String nameOfUnderlying;

	public SingleAssetDigitalOptionProductDescriptor(final String nameOfUnderlying, final LocalDate maturity, final double strike) {
		super();
		this.nameOfUnderlying = nameOfUnderlying;
		this.maturity = maturity;
		this.strike = strike;
	}

	@Override
	public Integer version() {
		return 1;
	}

	@Override
	public String name() {
		return productName;
	}

	public LocalDate getMaturity() {
		return maturity;
	}

	public double getStrike() {
		return strike;
	}

	public String getNameOfUnderlying() {
		return nameOfUnderlying;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy