net.finmath.montecarlo.crosscurrency.CrossCurrencyTermStructureMonteCarloSimulationModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib Show documentation
Show all versions of finmath-lib Show documentation
finmath lib is a Mathematical Finance Library in Java.
It provides algorithms and methodologies related to mathematical finance.
/*
* (c) Copyright Christian P. Fries, Germany. Contact: [email protected].
*
* Created on 23.12.2016
*/
package net.finmath.montecarlo.crosscurrency;
import net.finmath.exception.CalculationException;
import net.finmath.montecarlo.MonteCarloSimulationModel;
import net.finmath.montecarlo.model.ProcessModel;
import net.finmath.montecarlo.process.MonteCarloProcess;
import net.finmath.stochastic.RandomVariable;
/**
* Interface for cross currency term structure models.
*
* @author Christian Fries
* @version 1.0
*/
public interface CrossCurrencyTermStructureMonteCarloSimulationModel extends MonteCarloSimulationModel {
/**
* Return the forward rate for a given simulation time and a given period start and period end.
*
* @param curve The identifier specifying the curve or currency.
* @param time Simulation time
* @param periodStart Start time of period
* @param periodEnd End time of period
* @return The forward rate as a random variable as seen on simulation time for the specified period.
* @throws CalculationException Thrown if the valuation fails, specific cause may be available via the cause()
method.
*/
RandomVariable getForwardRate(String curve, double time, double periodStart, double periodEnd) throws CalculationException;
/**
* Return the (cross curve or currency) exchange rate for a given simulation time.
*
* @param fromCurve The identifier specifying the curve or currency for the denominator.
* @param toCurve The identifier specifying the curve or currency for the numerator.
* @param time Simulation time
* @return The (cross curve or currency) exchange rate for a given simulation time.
* @throws CalculationException Thrown if the valuation fails, specific cause may be available via the cause()
method.
*/
RandomVariable getExchangeRate(String fromCurve, String toCurve, double time) throws CalculationException;
/**
* Return the numeraire at a given time.
*
* @param time Time at which the process should be observed
* @return The numeraire at the specified time as RandomVariableFromDoubleArray
* @throws net.finmath.exception.CalculationException Thrown if the valuation fails, specific cause may be available via the cause()
method.
*/
RandomVariable getNumeraire(double time) throws CalculationException;
/**
* Returns the underlying model.
*
* The model specifies the measure, the initial value, the drift, the factor loadings (covariance model), etc.
*
* @return The underlying model
*/
ProcessModel getModel();
/**
* @return The implementation of the process
*/
MonteCarloProcess getProcess();
}